You are here

function rules_action_set_breadcrumb_form in Rules 6

Action "Set breadcrumb" configuration form

Related topics

File

rules/modules/system.rules_forms.inc, line 33
Rules configuration forms for the system module

Code

function rules_action_set_breadcrumb_form($settings = array(), &$form) {
  $settings += array(
    'titles' => '',
    'paths' => '',
  );
  $form['settings']['titles'] = array(
    '#type' => 'textarea',
    '#title' => t('Titles'),
    '#required' => TRUE,
    '#description' => t('A list of titles for the breadcrumb links, one on each line.'),
    '#default_value' => $settings['titles'],
  );
  $form['settings']['paths'] = array(
    '#type' => 'textarea',
    '#title' => t('Paths'),
    '#required' => TRUE,
    '#description' => t('A list of Drupal paths for the breadcrumb links, one on each line.'),
    '#default_value' => $settings['paths'],
  );
}