123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <?php
- function hook_simplenews_issue_operations() {
- $operations = array(
- 'activate' => array(
- 'label' => t('Send'),
- 'callback' => 'simplenews_issue_send',
- ),
- );
- return $operations;
- }
- function hook_simplenews_subscription_operations() {
- $operations = array(
- 'activate' => array(
- 'label' => t('Activate'),
- 'callback' => 'simplenews_subscription_activate',
- 'callback arguments' => array(SIMPLENEWS_SUBSCRIPTION_ACTIVE),
- ),
- 'inactivate' => array(
- 'label' => t('Inactivate'),
- 'callback' => 'simplenews_subscription_activate',
- 'callback arguments' => array(SIMPLENEWS_SUBSCRIPTION_INACTIVE),
- ),
- 'delete' => array(
- 'label' => t('Delete'),
- 'callback' => 'simplenews_subscription_delete_multiple',
- ),
- );
- return $operations;
- }
- function hook_simplenews_spooled($node) {
- }
- function hook_simplenews_category_update($category) {
- }
- function hook_simplenews_category_delete($category) {
- }
- function hook_simplenews_subscriber_update($subscriber) {
- }
- function hook_simplenews_subscriber_insert($subscriber) {
- }
- function hook_simplenews_subscriber_delete($subscriber) {
- }
- function hook_simplenews_subscribe_user($subscriber, $subscription) {
- }
- function hook_simplenews_unsubscribe_user($subscriber, $subscription) {
- }
- function hook_simplenews_source_cache_info() {
- return array(
- 'SimplenewsSourceCacheNone' => array(
- 'label' => t('No caching'),
- 'description' => t('This allows to theme each newsletter separately.'),
- ),
- 'SimplenewsSourceCacheBuild' => array(
- 'label' => t('Cached content source'),
- 'description' => t('This caches the rendered content to be sent for multiple recipients. It is not possible to use subscriber specific theming but tokens can be used for personalization.'),
- ),
- );
- }
|