function notifications_queue_operations in Notifications 6.3
Same name and namespace in other branches
- 6 notifications.admin.inc \notifications_queue_operations()
- 6.2 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 459
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,
),
),
),
'clean' => array(
'label' => t('Clean queue'),
'description' => t('Delete all logs, processed rows and related data in queue.'),
'callback' => 'notifications_admin_queue_process',
'callback arguments' => array(
'clean queue',
),
),
'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',
),
),
'testsend' => array(
'label' => t('Run test'),
'description' => t('Test run queue processing, without updating but actually sending messages.'),
'callback' => 'notifications_admin_queue_process',
'callback arguments' => array(
'test send',
),
),
);
return $operations;
}