You are here

function hansel_ui_switch_configure_form in Hansel breadcrumbs 7

Same name and namespace in other branches
  1. 8 hansel_ui/hansel_ui.module \hansel_ui_switch_configure_form()

Alter a switch configuration form before passing it to the rendering engine.

Parameters

array $form:

Return value

array

4 calls to hansel_ui_switch_configure_form()
hansel_ui_switch_node_age_config_form in hansel_ui/hansel_ui.module
Callback for "node age" switch to generate the configuration form.
hansel_ui_switch_path_alias_config_form in hansel_ui/hansel_ui.module
Callback for "path alias" switch to generate the configuration form.
hansel_ui_switch_php_argument_config_form in hansel_ui/hansel_ui.module
Callback for "PHP code" switch to generate the configuration form.
hansel_ui_switch_url_argument_config_form in hansel_ui/hansel_ui.module
Callback for "url argument" switch to generate the configuration form.

File

hansel_ui/hansel_ui.module, line 563
Hansel UI module

Code

function hansel_ui_switch_configure_form($form) {
  global $_hansel_rid;
  $form['#rid'] = $_hansel_rid;
  $form['#submit'][] = 'hansel_ui_switch_configure_form_submit';
  $form['buttons']['save'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  $form['buttons']['cancel'] = array(
    '#value' => l(t('Cancel'), 'admin/config/search/hansel'),
  );
  return $form;
}