Skip to content

Instantly share code, notes, and snippets.

@deetergp
Created September 15, 2012 23:44
Show Gist options
  • Save deetergp/3730380 to your computer and use it in GitHub Desktop.
Save deetergp/3730380 to your computer and use it in GitHub Desktop.
$view = new view();
$view->name = 'agent_listing';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'users';
$view->human_name = 'Agent Listing';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Agent Listing';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['access']['perm'] = 'access user profiles';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: User: E-mail */
$handler->display->display_options['fields']['mail']['id'] = 'mail';
$handler->display->display_options['fields']['mail']['table'] = 'users';
$handler->display->display_options['fields']['mail']['field'] = 'mail';
$handler->display->display_options['fields']['mail']['label'] = '';
$handler->display->display_options['fields']['mail']['exclude'] = TRUE;
$handler->display->display_options['fields']['mail']['element_label_colon'] = FALSE;
/* Field: User: First Name */
$handler->display->display_options['fields']['field_user_first_name']['id'] = 'field_user_first_name';
$handler->display->display_options['fields']['field_user_first_name']['table'] = 'field_data_field_user_first_name';
$handler->display->display_options['fields']['field_user_first_name']['field'] = 'field_user_first_name';
$handler->display->display_options['fields']['field_user_first_name']['label'] = '';
$handler->display->display_options['fields']['field_user_first_name']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_user_first_name']['element_label_colon'] = FALSE;
/* Field: User: Last Name */
$handler->display->display_options['fields']['field_user_last_name']['id'] = 'field_user_last_name';
$handler->display->display_options['fields']['field_user_last_name']['table'] = 'field_data_field_user_last_name';
$handler->display->display_options['fields']['field_user_last_name']['field'] = 'field_user_last_name';
$handler->display->display_options['fields']['field_user_last_name']['label'] = '';
$handler->display->display_options['fields']['field_user_last_name']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['field_user_last_name']['alter']['text'] = '[mail]|[field_user_first_name] [field_user_last_name]';
$handler->display->display_options['fields']['field_user_last_name']['element_label_colon'] = FALSE;
/* Sort criterion: User: Created date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'users';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: User: Active */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'users';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = '1';
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: User: Roles */
$handler->display->display_options['filters']['rid']['id'] = 'rid';
$handler->display->display_options['filters']['rid']['table'] = 'users_roles';
$handler->display->display_options['filters']['rid']['field'] = 'rid';
$handler->display->display_options['filters']['rid']['value'] = array(
4 => '4',
);
/* Display: Agent Listing */
$handler = $view->new_display('page', 'Agent Listing', 'page');
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
$handler->display->display_options['path'] = 'agent-listing';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment