1 views_plugin_row_user_view.inc views_plugin_row_user_view::options_form(&$form, &$form_state)

Provide a form for setting options.

Overrides views_plugin_row::options_form

File

core/modules/user/views/views_plugin_row_user_view.inc, line 26
Contains the user view row plugin.

Class

views_plugin_row_user_view
A row plugin which renders a user account via user_view.

Code

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('Display mode'),
    '#default_value' => $this->options['view_mode'],
  );
  $form['help']['#type'] = 'help';
  $form['help']['#markup'] = t("Display the user account using the standard user account view. It might be necessary to add a user-profile.tpl.php file in your themes template folder, because the default <a href=\"@user-profile-api-link\">user-profile</a> template doesn't show the username.", array('@user-profile-api-link' => url('https://docs.backdropcms.org/api/backdrop/core%21modules%21user%21templates%21user-profile.tpl.php/1')));
}