1 front_layout_access.inc FrontLayoutAccess::form(&$form, &$form_state)

Settings form for configuring this access item.

Overrides LayoutAccessNegatable::form

File

core/modules/layout/plugins/access/front_layout_access.inc, line 10
Class for loading, modifying, and saving a layout access rule (condition).

Class

FrontLayoutAccess
@file Class for loading, modifying, and saving a layout access rule (condition).

Code

function form(&$form, &$form_state) {
  parent::form($form, $form_state);
  $form['negate'] = array(
    '#type' => 'radios',
    '#title' => t('Current path is'),
    '#options' => array(
      0 => t('The home page'),
      1 => t('Any page except the home page'),
    ),
    '#weight' => 100,
    '#default_value' => (int) $this->settings['negate'],
  );
}