1 views_plugin_row_user_view.inc views_plugin_row_user_view::options_form_summary_options()

Return the main options, which are shown in the summary title.

File

core/modules/user/views/views_plugin_row_user_view.inc, line 45
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_summary_options() {
  $entity_info = entity_get_info('user');
  $options = array();
  if (!empty($entity_info['view modes'])) {
    foreach ($entity_info['view modes'] as $mode => $settings) {
      $options[$mode] = $settings['label'];
    }
  }
  if (empty($options)) {
    $options = array(
      'full' => t('User account')
    );
  }

  return $options;
}