function subscriptions_user_operations in Subscriptions 7
Same name and namespace in other branches
- 6 subscriptions.module \subscriptions_user_operations()
- 2.0.x subscriptions.module.old.php \subscriptions_user_operations()
Implements hook_user_operations().
Return value
array|null
File
- ./
subscriptions.module, line 1024 - Subscriptions module.
Code
function subscriptions_user_operations() {
if (user_access('bulk-administer user subscriptions')) {
return array(
array(
'label' => t('Subscribe the selected users to...'),
'callback' => '_subscriptions_bulk_operation',
'callback arguments' => array(
'sub',
),
),
array(
'label' => t('Unsubscribe the selected users from...'),
'callback' => '_subscriptions_bulk_operation',
'callback arguments' => array(
'unsub',
),
),
);
}
return NULL;
}