You are here

function _subscriptions_page_user_bulk_variables in Subscriptions 7

Same name and namespace in other branches
  1. 6 subscriptions.admin.inc \_subscriptions_page_user_bulk_variables()
  2. 2.0.x subscriptions.admin.old.php \_subscriptions_page_user_bulk_variables()

Helper function to provide strings.

Return value

array

2 calls to _subscriptions_page_user_bulk_variables()
subscriptions_page_form in ./subscriptions.admin.inc
Display subscribed content data on the user and site subscriptions pages. @ TODO clean up all of these parts
subscriptions_page_user_bulk in ./subscriptions.admin.inc
Provides the form definition for admin/config/system/subscriptions/userdefaults/bulk.

File

./subscriptions.admin.inc, line 893
Subscriptions module (load-on-demand admin functions).

Code

function _subscriptions_page_user_bulk_variables() {
  $bulk_op = $_SESSION['subscriptions']['bulk_op'];
  $uids = unserialize($_SESSION['subscriptions']['uids']);
  $count = count($uids);
  $variables = array(
    '!action' => '<strong>' . ($bulk_op == 'sub' ? t('subscribing') : t('unsubscribing')) . '</strong>',
    '!change' => '<strong>' . ($bulk_op == 'sub' ? t('add') : t('remove')) . '</strong>',
    '@Save' => t('Save'),
    '@Done' => t('Done'),
  );
  $variables['info'] = format_plural($count, '1 user selected for bulk !action.', '@count users selected for bulk !action.', $variables);
  return $variables;
}