You are here

function views_plugin_argument_default::argument_form in Views (for Drupal 7) 6.2

4 methods override views_plugin_argument_default::argument_form()
views_plugin_argument_default_node::argument_form in modules/node/views_plugin_argument_default_node.inc
views_plugin_argument_default_php::argument_form in plugins/views_plugin_argument_default_php.inc
views_plugin_argument_default_taxonomy_tid::argument_form in modules/taxonomy/views_plugin_argument_default_taxonomy_tid.inc
views_plugin_argument_default_user::argument_form in modules/user/views_plugin_argument_default_user.inc

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);
}