You are here

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

Overrides views_plugin_argument_default::argument_form

File

modules/user/views_plugin_argument_default_user.inc, line 13
Contains the user from URL argument default plugin.

Class

views_plugin_argument_default_user
Default argument plugin to extract a user via menu_get_object

Code

function argument_form(&$form, &$form_state) {
  $form[$this->option_name] = array(
    '#type' => 'checkbox',
    '#title' => t('Also look for a node and use the node author'),
    '#default_value' => !empty($this->argument->options[$this->option_name]),
    '#process' => array(
      'views_process_dependency',
    ),
    '#dependency' => array(
      'radio:options[default_action]' => array(
        'default',
      ),
      'radio:options[default_argument_type]' => array(
        $this->id,
      ),
    ),
    '#dependency_count' => 2,
  );
}