class ViewsUiFileManagedViewsWizard in Views (for Drupal 7) 7.3
Tests creating managed files views with the wizard.
Hierarchy
- class \ViewsUiBaseViewsWizard implements ViewsWizardInterface
Expanded class hierarchy of ViewsUiFileManagedViewsWizard
1 string reference to 'ViewsUiFileManagedViewsWizard'
- file_managed.inc in plugins/
views_wizard/ file_managed.inc
File
- plugins/
views_wizard/ views_ui_file_managed_views_wizard.class.php, line 11 - Definition of ViewsUiFileManagedViewsWizard.
View source
class ViewsUiFileManagedViewsWizard 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';
// Remove the default fields, since we are customizing them here.
unset($display_options['fields']);
/* Field: File: Name */
$display_options['fields']['filename']['id'] = 'filename';
$display_options['fields']['filename']['table'] = 'file_managed';
$display_options['fields']['filename']['field'] = 'filename';
$display_options['fields']['filename']['label'] = '';
$display_options['fields']['filename']['alter']['alter_text'] = 0;
$display_options['fields']['filename']['alter']['make_link'] = 0;
$display_options['fields']['filename']['alter']['absolute'] = 0;
$display_options['fields']['filename']['alter']['trim'] = 0;
$display_options['fields']['filename']['alter']['word_boundary'] = 0;
$display_options['fields']['filename']['alter']['ellipsis'] = 0;
$display_options['fields']['filename']['alter']['strip_tags'] = 0;
$display_options['fields']['filename']['alter']['html'] = 0;
$display_options['fields']['filename']['hide_empty'] = 0;
$display_options['fields']['filename']['empty_zero'] = 0;
$display_options['fields']['filename']['link_to_file'] = 1;
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:: |
||
ViewsUiFileManagedViewsWizard:: |
protected | function |
Most subclasses will need to override this method to provide some fields
or a different row plugin. Overrides ViewsUiBaseViewsWizard:: |