function views_plugin_row_user_view::options_form
3.x 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
- modules/
user/ views_plugin_row_user_view.inc, line 27 - Contains the user view row plugin.
Class
- views_plugin_row_user_view
- A row plugin which renders a user 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('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 themes template folder, because the default <a href=\"@user-profile-api-link\">user-profile</a>e template don't show the username per default.", array('@user-profile-api-link' => url('http://api.drupal.org/api/drupal/modules--user--user-profile.tpl.php/7')));
}