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
| Name | Description |
|---|---|
| SIMPLENEWS_COMMAND_SEND_NONE | NEWSLETTER SEND COMMAND |
| SIMPLENEWS_COMMAND_SEND_NOW | |
| SIMPLENEWS_COMMAND_SEND_TEST | |
| SIMPLENEWS_MAX_EXECUTION_TIME | CAPTURE 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_NONE | NEWSLETTER MAIL PRIORITY |
| SIMPLENEWS_PRIORITY_NORMAL | |
| SIMPLENEWS_SEND_CHECK_INTERVAL | AFTER EACH 100 NEWSLETTERS simplenews_mail_spool() CHECKS IF LIMITS ARE EXCEEDED |
| SIMPLENEWS_SEND_TIME_LIMIT | AT 80% OF PHP MAX EXECUTION TIME EMAIL SENDING IS INTERRUPTED |
| SIMPLENEWS_SPOOL_DONE | |
| SIMPLENEWS_SPOOL_HOLD | MAIL SPOOL SEND STATUS |
| SIMPLENEWS_SPOOL_PENDING | |
| SIMPLENEWS_STATUS_SEND_NOT | NEWSLETTER SENT STATUS |
| SIMPLENEWS_STATUS_SEND_PENDING | |
| SIMPLENEWS_STATUS_SEND_READY |
Functions
| Name | Description |
|---|---|
| simplenews_block | Implementation of hook_block(). |
| simplenews_block_form | Newsletter (un)subscription form for authenticated and anonymous users. |
| simplenews_block_form_submit | |
| simplenews_block_form_validate | |
| simplenews_call_actions | Call simplenews actions. |
| simplenews_clear_spool | Remove records from mail spool table. |
| simplenews_content_build_modes | Implementation of hook_content_build_modes(). |
| simplenews_count_spool | Count data in mail spool table. |
| simplenews_cron | Implementation of hook_cron(). |
| simplenews_delete_subscription | Delete every subscription for the given subscription ID. |
| simplenews_forms | Implementation of hook_forms(). |
| simplenews_form_alter | Implementation of hook_form_alter(). |
| simplenews_get_spool | Retreive data from mail spool |
| simplenews_get_subscription | Get the subscription object for the given account. |
| simplenews_help | Implementation of hook_help(). |
| simplenews_html_to_text | HTML to text conversion for HTML and special characters. |
| simplenews_init | Implementation of hook_init(). |
| simplenews_mail | Implementation of hook_mail(). |
| simplenews_mail_mail | Send a node to an email address. |
| simplenews_mail_spool | Send simplenews newsletters from the spool. |
| simplenews_mail_tokens | Build array of mail tokens. |
| simplenews_menu | Implementation of hook_menu(). |
| simplenews_newsletter_access | Menu item access callback. |
| simplenews_nodeapi | Implementation of hook_nodeapi(). |
| simplenews_node_type | Implementation of hook_node_type(). |
| simplenews_perm | Implementation of hook_perm(). |
| simplenews_private_key | Create a 32 character identifier. |
| simplenews_recent_newsletters | Create a list of recent newsletters. |
| simplenews_save_spool | Save mail message in mail cache table. |
| simplenews_send_node | Send newsletter node to subcribers. |
| simplenews_send_status_update | Update newsletter sent status. |
| simplenews_send_test | Send test version of newsletter. |
| simplenews_subscribe_user | Subscribe a user to a newsletter or send a confirmation mail. |
| simplenews_subscription_edit_access | Access callback for user newsletter editing. |
| simplenews_taxonomy | Implementation of hook_taxonomy(). |
| simplenews_theme | Implementation of hook_theme(). |
| simplenews_unsubscribe_user | Unsubscribe a user from a newsletter or send a confirmation mail. |
| simplenews_update_spool | Update status of mail data in spool table. |
| simplenews_user | Implementation of hook_user(). |
| simplenews_user_is_subscribed | Check if the email address is subscribed to the given newsletter. |
| simplenews_validate_taxonomy | Validate if selected terms are Newsletter taxonomy terms. |
| simplenews_views_api | Implementation of hook_views_api(). |
| template_preprocess_simplenews_block | Process variables to format the simplenews block. |
| template_preprocess_simplenews_newsletter_body | Process variables to format the simplenews newsletter body. |
| template_preprocess_simplenews_newsletter_footer | Process variables to format the simplenews newsletter footer. |
| theme_simplenews_newsletter_subject | Theme the newsletter email subject. |
| _simplenews_absolute_mail_urls | Helper function for simplenews_html_to_text(). |
| _simplenews_flatten_array | Flatten a nested array |
| _simplenews_format_options | Determine possible mail format options. |
| _simplenews_generate_hash | Generate the hash key used for subscribe/unsubscribe link. |
| _simplenews_headers | Build header array with priority and receipt confirmation settings. |
| _simplenews_html_replace | Helper function for simplenews_html_to_text(). |
| _simplenews_measure_usec | Helper function to measure PHP execution time in microseconds. |
| _simplenews_set_from | Build formatted from-name and email for a mail object. |
| _simplenews_subscription_confirmation_text | Generate default and custom subscription confirmation email text. |
| _simplenews_subscription_manager_form | Build subscription manager form. |
| _simplenews_user_load | Load a user or creates a dummy anonymous user. |


