You are here

function subscriptions_user_operations in Subscriptions 6

Same name and namespace in other branches
  1. 7 subscriptions.module \subscriptions_user_operations()
  2. 2.0.x subscriptions.module.old.php \subscriptions_user_operations()

Implementation of hook_user_operations().

File

./subscriptions.module, line 696
Subscriptions module.

Code

function subscriptions_user_operations($form_state = NULL) {
  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',
        ),
      ),
    );
  }
}