function notifications_queue_operations in Notifications 6
Same name and namespace in other branches
- 6.2 notifications.admin.inc \notifications_queue_operations()
- 6.3 notifications.admin.inc \notifications_queue_operations()
List of queue operations
2 calls to notifications_queue_operations()
- notifications_admin_queue_operations in ./
notifications.admin.inc - Form for queue operations
- notifications_admin_queue_operations_submit in ./
notifications.admin.inc - Operations form submit, translate op into callback
File
- ./
notifications.admin.inc, line 401
Code
function notifications_queue_operations() {
$operations = array(
'run' => array(
'label' => t('Run process'),
'description' => t('Run normal queue processing, same as cron run.'),
'callback' => 'notifications_process_run',
'callback arguments' => array(
FALSE,
),
),
'immediate' => array(
'label' => t('Process immediate'),
'description' => t('Process only rows marked for immediate sending.'),
'callback' => 'notifications_process_rows',
'callback arguments' => array(
array(
'cron' => 1,
'send_interval' => 0,
),
),
),
'reset' => array(
'label' => t('Reset queue'),
'description' => t('Delete all notifications in queue.'),
'callback' => 'notifications_admin_queue_process',
'callback arguments' => array(
'reset queue',
),
),
'test' => array(
'label' => t('Run test'),
'description' => t('Test run queue processing, without updating nor sending messages.'),
'callback' => 'notifications_admin_queue_process',
'callback arguments' => array(
'test run',
),
),
);
return $operations;
}