function _subscriptions_page_user_bulk_variables in Subscriptions 6
Same name and namespace in other branches
- 7 subscriptions.admin.inc \_subscriptions_page_user_bulk_variables()
- 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 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 - Provide the form definition for admin/settings/subscriptions/userdefaults/bulk.
File
- ./
subscriptions.admin.inc, line 756 - 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;
}