You are here

function advancedqueue_form_system_cron_settings_alter in Advanced Queue 7

Implements hook_form_FORM_ID_alter().

Add Advanced queue setting to use cron, to the cron settings page.

File

./advancedqueue.module, line 127
Helper module for advanced queuing.

Code

function advancedqueue_form_system_cron_settings_alter(&$form, $form_state, $form_id) {
  $form['advancedqueue_use_cron'] = array(
    '#type' => 'checkbox',
    '#title' => t('Process Advanced Queue via Cron'),
    '#multiple' => TRUE,
    '#description' => t('Enable to allow queue items to to be processed using Cron. This is a "poor man\'s" option that allows processing the queue, as the better solution would be to execute the Drush command via the command line.'),
    '#default_value' => variable_get('advancedqueue_use_cron', FALSE),
  );
}