function hook_simplenews_subscription_operations in Simplenews 7.2
Same name and namespace in other branches
- 8.2 simplenews.api.php \hook_simplenews_subscription_operations()
- 8 simplenews.api.php \hook_simplenews_subscription_operations()
- 7 simplenews.api.php \hook_simplenews_subscription_operations()
- 3.x simplenews.api.php \hook_simplenews_subscription_operations()
Return operations to be applied to subscriptions.
Related topics
1 function implements hook_simplenews_subscription_operations()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- simplenews_simplenews_subscription_operations in includes/
simplenews.admin.inc - Implements hook_simplenews_subscription_operations().
2 invocations of hook_simplenews_subscription_operations()
- simplenews_subscription_list_form in includes/
simplenews.admin.inc - Menu callback: subscription administration.
- simplenews_subscription_list_form_submit in includes/
simplenews.admin.inc - @todo
File
- ./
simplenews.api.php, line 84 - Hooks provided by the Simplenews module.
Code
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;
}