class oa_views_plugin_exposed_form in Open Atrium Core 7.2
@file Defines an exposed form plugin that contains some OA goodies.
Hierarchy
- class \views_object
- class \views_plugin
- class \views_plugin_exposed_form
- class \oa_views_plugin_exposed_form
- class \views_plugin_exposed_form
- class \views_plugin
Expanded class hierarchy of oa_views_plugin_exposed_form
1 string reference to 'oa_views_plugin_exposed_form'
- oa_core_views_plugins in ./
oa_core.views.inc - Implements hook_views_plugins().
File
- plugins/
views/ oa_views_plugin_exposed_form.inc, line 8 - Defines an exposed form plugin that contains some OA goodies.
View source
class oa_views_plugin_exposed_form extends views_plugin_exposed_form {
/**
* Provide options and defaults.
*/
function option_definition() {
$options = parent::option_definition();
$options['collapsed_filter'] = array(
'default' => TRUE,
'translatable' => TRUE,
);
return $options;
}
/**
* Provide options form.
*/
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['collapsed_filter'] = array(
'#type' => 'checkbox',
'#title' => t('Collapsed filter'),
'#description' => t('Adds a button that will show the exposed filter. Collapsed by default.'),
'#default_value' => $this->options['collapsed_filter'],
);
}
/**
* Alter the exposed form based on our settings.
*/
function exposed_form_alter(&$form, &$form_state) {
parent::exposed_form_alter($form, $form_state);
$form['#collapsed_filter'] = $this->options['collapsed_filter'];
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
oa_views_plugin_exposed_form:: |
function |
Alter the exposed form based on our settings. Overrides views_plugin_exposed_form:: |
||
oa_views_plugin_exposed_form:: |
function |
Provide options form. Overrides views_plugin_exposed_form:: |
||
oa_views_plugin_exposed_form:: |
function |
Provide options and defaults. Overrides views_plugin_exposed_form:: |
||
views_object:: |
public | property | Handler's definition. | |
views_object:: |
public | property | Except for displays, options for the object will be held here. | 1 |
views_object:: |
function | Collect this handler's option definition and alter them, ready for use. | ||
views_object:: |
public | function | Views handlers use a special construct function. | 4 |
views_object:: |
public | function | Destructor. | 2 |
views_object:: |
public | function | 1 | |
views_object:: |
public | function | ||
views_object:: |
public | function | Always exports the option, regardless of the default value. | |
views_object:: |
public | function | Set default options on this object. | 1 |
views_object:: |
public | function | Set default options. | |
views_object:: |
public | function | Let the handler know what its full definition is. | |
views_object:: |
public | function | Unpack options over our existing defaults, drilling down into arrays so that defaults don't get totally blown away. | |
views_object:: |
public | function | Unpack a single option definition. | |
views_object:: |
public | function | Unpacks each handler to store translatable texts. | |
views_object:: |
public | function | ||
views_plugin:: |
public | property | The current used views display. | |
views_plugin:: |
public | property | The plugin name of this plugin, for example table or full. | |
views_plugin:: |
public | property | The plugin type of this plugin, for example style or query. | |
views_plugin:: |
public | property |
The top object of a view. Overrides views_object:: |
1 |
views_plugin:: |
public | function | Provide a list of additional theme functions for the theme info page. | |
views_plugin:: |
public | function | Handle any special handling on the validate form. | 9 |
views_plugin:: |
public | function | Validate the options form. | 10 |
views_plugin:: |
public | function | Return the human readable name of the display. | |
views_plugin:: |
public | function | Returns the summary of the settings in the display. | 8 |
views_plugin:: |
public | function | Provide a full list of possible theme templates used by this style. | |
views_plugin:: |
public | function | Validate that the plugin is correct and can be saved. | 3 |
views_plugin_exposed_form:: |
public | function | This function is executed when exposed form is submited. | |
views_plugin_exposed_form:: |
public | function | ||
views_plugin_exposed_form:: |
public | function | Initialize the plugin. | |
views_plugin_exposed_form:: |
public | function | ||
views_plugin_exposed_form:: |
public | function | ||
views_plugin_exposed_form:: |
public | function | ||
views_plugin_exposed_form:: |
public | function | 1 | |
views_plugin_exposed_form:: |
public | function |
Add anything to the query that we might need to. Overrides views_plugin:: |
1 |
views_plugin_exposed_form:: |
public | function | Render the exposed filter form. | |
views_plugin_exposed_form:: |
public | function |