simplenews.module

Version 1.76.2.156 (checked in on 2010/05/19 at 14:01:22 by sutharsan)

Simplnews node handling, sent email, newsletter block and general hooks

@ingroup simplenews

Constants

NameDescription
SIMPLENEWS_COMMAND_SEND_NONENEWSLETTER SEND COMMAND
SIMPLENEWS_COMMAND_SEND_NOW
SIMPLENEWS_COMMAND_SEND_TEST
SIMPLENEWS_MAX_EXECUTION_TIMECAPTURE THE PHP MAX EXUCUTION TIME BEFORE drupal_cron_run() CHANGES THIS. THIS IS A WORK AROUND FOR DRUPAL6.14 BUG. SEE http://drupal.org/node/584334
SIMPLENEWS_PRIORITY_HIGH
SIMPLENEWS_PRIORITY_HIGHEST
SIMPLENEWS_PRIORITY_LOW
SIMPLENEWS_PRIORITY_LOWEST
SIMPLENEWS_PRIORITY_NONENEWSLETTER MAIL PRIORITY
SIMPLENEWS_PRIORITY_NORMAL
SIMPLENEWS_SEND_CHECK_INTERVALAFTER EACH 100 NEWSLETTERS simplenews_mail_spool() CHECKS IF LIMITS ARE EXCEEDED
SIMPLENEWS_SEND_TIME_LIMITAT 80% OF PHP MAX EXECUTION TIME EMAIL SENDING IS INTERRUPTED
SIMPLENEWS_SPOOL_DONE
SIMPLENEWS_SPOOL_HOLDMAIL SPOOL SEND STATUS
SIMPLENEWS_SPOOL_PENDING
SIMPLENEWS_STATUS_SEND_NOTNEWSLETTER SENT STATUS
SIMPLENEWS_STATUS_SEND_PENDING
SIMPLENEWS_STATUS_SEND_READY

Functions

NameDescription
simplenews_blockImplementation of hook_block().
simplenews_block_formNewsletter (un)subscription form for authenticated and anonymous users.
simplenews_block_form_submit
simplenews_block_form_validate
simplenews_call_actionsCall simplenews actions.
simplenews_clear_spoolRemove records from mail spool table.
simplenews_content_build_modesImplementation of hook_content_build_modes().
simplenews_count_spoolCount data in mail spool table.
simplenews_cronImplementation of hook_cron().
simplenews_delete_subscriptionDelete every subscription for the given subscription ID.
simplenews_formsImplementation of hook_forms().
simplenews_form_alterImplementation of hook_form_alter().
simplenews_get_spoolRetreive data from mail spool
simplenews_get_subscriptionGet the subscription object for the given account.
simplenews_helpImplementation of hook_help().
simplenews_html_to_textHTML to text conversion for HTML and special characters.
simplenews_initImplementation of hook_init().
simplenews_mailImplementation of hook_mail().
simplenews_mail_mailSend a node to an email address.
simplenews_mail_spoolSend simplenews newsletters from the spool.
simplenews_mail_tokensBuild array of mail tokens.
simplenews_menuImplementation of hook_menu().
simplenews_newsletter_accessMenu item access callback.
simplenews_nodeapiImplementation of hook_nodeapi().
simplenews_node_typeImplementation of hook_node_type().
simplenews_permImplementation of hook_perm().
simplenews_private_keyCreate a 32 character identifier.
simplenews_recent_newslettersCreate a list of recent newsletters.
simplenews_save_spoolSave mail message in mail cache table.
simplenews_send_nodeSend newsletter node to subcribers.
simplenews_send_status_updateUpdate newsletter sent status.
simplenews_send_testSend test version of newsletter.
simplenews_subscribe_userSubscribe a user to a newsletter or send a confirmation mail.
simplenews_subscription_edit_accessAccess callback for user newsletter editing.
simplenews_taxonomyImplementation of hook_taxonomy().
simplenews_themeImplementation of hook_theme().
simplenews_unsubscribe_userUnsubscribe a user from a newsletter or send a confirmation mail.
simplenews_update_spoolUpdate status of mail data in spool table.
simplenews_userImplementation of hook_user().
simplenews_user_is_subscribedCheck if the email address is subscribed to the given newsletter.
simplenews_validate_taxonomyValidate if selected terms are Newsletter taxonomy terms.
simplenews_views_apiImplementation of hook_views_api().
template_preprocess_simplenews_blockProcess variables to format the simplenews block.
template_preprocess_simplenews_newsletter_bodyProcess variables to format the simplenews newsletter body.
template_preprocess_simplenews_newsletter_footerProcess variables to format the simplenews newsletter footer.
theme_simplenews_newsletter_subjectTheme the newsletter email subject.
_simplenews_absolute_mail_urlsHelper function for simplenews_html_to_text().
_simplenews_flatten_arrayFlatten a nested array
_simplenews_format_optionsDetermine possible mail format options.
_simplenews_generate_hashGenerate the hash key used for subscribe/unsubscribe link.
_simplenews_headersBuild header array with priority and receipt confirmation settings.
_simplenews_html_replaceHelper function for simplenews_html_to_text().
_simplenews_measure_usecHelper function to measure PHP execution time in microseconds.
_simplenews_set_fromBuild formatted from-name and email for a mail object.
_simplenews_subscription_confirmation_textGenerate default and custom subscription confirmation email text.
_simplenews_subscription_manager_formBuild subscription manager form.
_simplenews_user_loadLoad a user or creates a dummy anonymous user.