You are here

function notifications_admin_queue_operations in Notifications 6.3

Same name and namespace in other branches
  1. 6 notifications.admin.inc \notifications_admin_queue_operations()
  2. 6.2 notifications.admin.inc \notifications_admin_queue_operations()

Form for queue operations

1 string reference to 'notifications_admin_queue_operations'
notifications_admin_queue in ./notifications.admin.inc
Admin queue management

File

./notifications.admin.inc, line 421

Code

function notifications_admin_queue_operations($form_state, $op) {
  $form['operation'] = array(
    '#type' => 'radios',
    '#title' => t('Operation'),
    '#options' => array(),
    '#default_value' => $op ? $op : 'run',
  );
  foreach (notifications_queue_operations() as $op => $data) {
    $form['operation']['#options'][$op] = $data['description'];
  }
  $form['process'] = array(
    '#type' => 'submit',
    '#value' => t('Process queue'),
  );
  return $form;
}