You are here

public function views_plugin_row_user_view::options_form in Views (for Drupal 7) 7.3

Provide a form for setting options.

Overrides views_plugin_row::options_form

File

modules/user/views_plugin_row_user_view.inc, line 41
Definition of views_plugin_row_user_view.

Class

views_plugin_row_user_view
A row plugin which renders a user via user_view.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $options = $this
    ->options_form_summary_options();
  $form['view_mode'] = array(
    '#type' => 'select',
    '#options' => $options,
    '#title' => t('View mode'),
    '#default_value' => $this->options['view_mode'],
  );
  $form['help']['#markup'] = t("Display the user with standard user view. It might be necessary to add a user-profile.tpl.php in your theme's template folder, because the default <a href=\"@user-profile-api-link\">user-profile</a> template doesn't show the username by default.", array(
    '@user-profile-api-link' => url('http://api.drupal.org/api/drupal/modules--user--user-profile.tpl.php/7'),
  ));
}