You are here

function crumbs_admin_form in Crumbs, the Breadcrumbs suite 6

Same name and namespace in other branches
  1. 6.2 crumbs.admin.inc \crumbs_admin_form()
  2. 7 admin/crumbs.admin.inc \crumbs_admin_form()
1 string reference to 'crumbs_admin_form'
crumbs_menu in ./crumbs.module

File

./crumbs.admin.inc, line 4

Code

function crumbs_admin_form() {
  $form = array();
  $text = <<<EOT
    <p>Reorder and enable/disable crumbs rules.</p>
    <p>The title coming after the first space in each row can be ignored, it has no effect. What matters is the key before the first space.</p>
    <p>Hint: Copy+paste to edit this text to your favourite text editor, or to import, export and backup. Text editor beats tabledrag, don't you think?</p>
    <p>If a newly installed module introduces new crumbs rules, these rules will find themselves in the "inherit" section at first. Priority and enabled/disabled status of rules in the "inherit" section is inherited from matching wildcard rules in the "enabled" or "disabled" section. The '*' wildcard rule counts a enabled, if it is in the inherit section itself.</p>
EOT;
  $form['instructions'] = array(
    '#value' => t($text),
  );
  $form['settings'] = array(
    '#type' => 'textarea',
    '#title' => 'Order of rules.',
    '#description' => 'Each row is a rule',
    '#rows' => 24,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => 'Save',
  );
  $form['settings']['#default_value'] = _crumbs_get_default_text();
  return $form;
}