class ViewsUiUsersViewsWizard in Views (for Drupal 7) 7.3
Tests creating user views with the wizard.
Hierarchy
- class \ViewsUiBaseViewsWizard implements ViewsWizardInterface
- class \ViewsUiUsersViewsWizard
Expanded class hierarchy of ViewsUiUsersViewsWizard
File
- plugins/
views_wizard/ views_ui_users_views_wizard.class.php, line 11 - Definition of ViewsUiUsersViewsWizard.
View source
class ViewsUiUsersViewsWizard extends ViewsUiBaseViewsWizard {
protected function default_display_options($form, $form_state) {
$display_options = parent::default_display_options($form, $form_state);
// Add permission-based access control.
$display_options['access']['type'] = 'perm';
$display_options['access']['perm'] = 'access user profiles';
// Remove the default fields, since we are customizing them here.
unset($display_options['fields']);
/* Field: User: Name */
$display_options['fields']['name']['id'] = 'name';
$display_options['fields']['name']['table'] = 'users';
$display_options['fields']['name']['field'] = 'name';
$display_options['fields']['name']['label'] = '';
$display_options['fields']['name']['alter']['alter_text'] = 0;
$display_options['fields']['name']['alter']['make_link'] = 0;
$display_options['fields']['name']['alter']['absolute'] = 0;
$display_options['fields']['name']['alter']['trim'] = 0;
$display_options['fields']['name']['alter']['word_boundary'] = 0;
$display_options['fields']['name']['alter']['ellipsis'] = 0;
$display_options['fields']['name']['alter']['strip_tags'] = 0;
$display_options['fields']['name']['alter']['html'] = 0;
$display_options['fields']['name']['hide_empty'] = 0;
$display_options['fields']['name']['empty_zero'] = 0;
$display_options['fields']['name']['link_to_user'] = 1;
$display_options['fields']['name']['overwrite_anonymous'] = 0;
return $display_options;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ViewsUiBaseViewsWizard:: |
protected | property | ||
ViewsUiBaseViewsWizard:: |
protected | property | ||
ViewsUiBaseViewsWizard:: |
protected | property | ||
ViewsUiBaseViewsWizard:: |
protected | property | ||
ViewsUiBaseViewsWizard:: |
protected | property | ||
ViewsUiBaseViewsWizard:: |
protected | property | ||
ViewsUiBaseViewsWizard:: |
protected | function | Add the array of display options to the view, with appropriate overrides. | |
ViewsUiBaseViewsWizard:: |
protected | function | Alter the full array of display options before they are added to the view. | |
ViewsUiBaseViewsWizard:: |
protected | function | 2 | |
ViewsUiBaseViewsWizard:: |
protected | function | Build an array of display options for the view. | |
ViewsUiBaseViewsWizard:: |
protected | function | Build the part of the form that allows the user to select the filters. | |
ViewsUiBaseViewsWizard:: |
function |
For AJAX callbacks to build other elements in the "show" form. Overrides ViewsWizardInterface:: |
||
ViewsUiBaseViewsWizard:: |
protected | function | Build the part of the form that builds the display format options. | 2 |
ViewsUiBaseViewsWizard:: |
protected | function | Build the part of the form that allows the user to select the sort order. | |
ViewsUiBaseViewsWizard:: |
function |
Create a View from values that have been already submitted to validate(). Overrides ViewsWizardInterface:: |
||
ViewsUiBaseViewsWizard:: |
protected | function | ||
ViewsUiBaseViewsWizard:: |
protected | function | ||
ViewsUiBaseViewsWizard:: |
protected | function | ||
ViewsUiBaseViewsWizard:: |
protected | function | ||
ViewsUiBaseViewsWizard:: |
protected | function | ||
ViewsUiBaseViewsWizard:: |
protected | function | 2 | |
ViewsUiBaseViewsWizard:: |
protected | function | ||
ViewsUiBaseViewsWizard:: |
protected | function | ||
ViewsUiBaseViewsWizard:: |
protected | function | Add possible row style options. | 2 |
ViewsUiBaseViewsWizard:: |
protected | function | Sets options for a display and makes them the default options if possible. | |
ViewsUiBaseViewsWizard:: |
protected | function | Sets options for a display, inheriting from the defaults when possible. | |
ViewsUiBaseViewsWizard:: |
protected | function | ||
ViewsUiBaseViewsWizard:: |
function |
Instantiates a view and validates values. Overrides ViewsWizardInterface:: |
||
ViewsUiBaseViewsWizard:: |
function |
Constructor. Overrides ViewsWizardInterface:: |
||
ViewsUiUsersViewsWizard:: |
protected | function |
Most subclasses will need to override this method to provide some fields
or a different row plugin. Overrides ViewsUiBaseViewsWizard:: |