function views_plugin_argument_default::argument_form

2.x views_plugin_argument_default.inc views_plugin_argument_default::argument_form(&$form, &$form_state)

File

plugins/views_plugin_argument_default.inc, line 38
Contains the fixed argument default plugin.

Class

views_plugin_argument_default
The fixed argument default handler; also used as the base.

Code

function argument_form(&$form, &$form_state) {
  $form[$this->option_name] = array(
    '#type' => 'textfield',
    '#title' => t('Default argument'),
    '#default_value' => $this->get_argument(),
    '#process' => array('views_process_dependency'),
    '#dependency' => array(
      'radio:options[default_action]' => array('default'),
      'radio:options[default_argument_type]' => array($this->id)
    ),
    '#dependency_count' => 2,
  );

  // Only do this if using one simple standard form gadget
  $this->check_access($form);
}