You are here

function nodequeue_admin_settings in Nodequeue 5.2

Same name and namespace in other branches
  1. 6.2 includes/nodequeue.admin.inc \nodequeue_admin_settings()
  2. 7.3 includes/nodequeue.admin.inc \nodequeue_admin_settings()
  3. 7.2 includes/nodequeue.admin.inc \nodequeue_admin_settings()

Form builder for the nodequeue settings tab.

1 call to nodequeue_admin_settings()
nodequeue_workflow_ng_action_add_nodequeue_form in ./nodequeue.workflow_ng.inc
1 string reference to 'nodequeue_admin_settings'
nodequeue_menu in ./nodequeue.module
Implementation of hook_menu

File

./nodequeue.module, line 2468

Code

function nodequeue_admin_settings() {
  $form = array();
  $form['nodequeue_use_tab'] = array(
    '#type' => 'checkbox',
    '#title' => t('Create a menu tab for each node that could belong to any queues'),
    '#default_value' => variable_get('nodequeue_use_tab', 1),
  );
  $form['nodequeue_tab_display_max'] = array(
    '#type' => 'checkbox',
    '#title' => t('Include a column on the nodequeue tab for the maximum number of nodes in each queue'),
    '#default_value' => variable_get('nodequeue_tab_display_max', 1),
  );
  $form['nodequeue_tab_name'] = array(
    '#type' => 'textfield',
    '#title' => t('Node queue tab label'),
    '#default_value' => variable_get('nodequeue_tab_name', t('Node queue')),
    '#description' => t('If nodes will have a menu tab for manipulating related node queues, what should that tab be called?'),
  );
  return system_settings_form($form);
}