class qtip_views_plugin_display_extender in qTip (Stylish jQuery Tooltips) 7.2
Hierarchy
- class \views_object
- class \views_plugin
Expanded class hierarchy of qtip_views_plugin_display_extender
1 string reference to 'qtip_views_plugin_display_extender'
- qtip_views_views_plugins in modules/
qtip_views/ qtip_views.views.inc - Implements hook_views_plugins().
File
- modules/
qtip_views/ views/ qtip_views_plugin_display_extender.inc, line 3
View source
class qtip_views_plugin_display_extender extends views_plugin_display_extender {
function options_definition_alter(&$options) {
$options['qtip_tooltips'] = array(
'default' => array(),
'unpack_translatable' => 'unpack_tooltips',
);
$options['qtip_instance'] = array(
'default' => array(),
);
}
function unpack_tooltips(&$translatable, $storage, $option, $definition, $parents, $keys = array()) {
$tooltips = $storage[$option];
if (!empty($tooltips)) {
foreach ($tooltips as $field => $tooltip) {
$translation_keys = array_merge($keys, array(
$field,
));
$translatable[] = array(
'value' => $tooltip,
'keys' => $translation_keys,
'format' => NULL,
);
}
}
}
function options_form(&$form, &$form_state) {
if (strpos($form['#section'], '-style_options') !== FALSE) {
$form['qtip_instance'] = qtip_fetch_instances_field($this->display
->get_option('qtip_instance'));
}
}
function options_submit(&$form, &$form_state) {
if ($form_state['section'] == 'style_options') {
$this->display
->set_option('qtip_instance', $form_state['values']['qtip_instance']);
}
}
// Not sure what this does exactly ??
function options_summary(&$categories, &$options) {
$options['qtip_instance'] = array(
'category' => 'other',
'title' => t('qTip settings'),
'value' => t('Settings'),
'desc' => t('Change the qTip settings for this display.'),
);
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
qtip_views_plugin_display_extender:: |
function |
Provide a form to edit options for this plugin. Overrides views_plugin_display_extender:: |
||
qtip_views_plugin_display_extender:: |
function |
Provide a form to edit options for this plugin. Overrides views_plugin_display_extender:: |
||
qtip_views_plugin_display_extender:: |
function |
Handle any special handling on the validate form. Overrides views_plugin_display_extender:: |
||
qtip_views_plugin_display_extender:: |
function |
Provide the default summary for options in the views UI. Overrides views_plugin_display_extender:: |
||
qtip_views_plugin_display_extender:: |
function | |||
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 | Information about options for all kinds of purposes will be held here. | 13 |
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 | 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_display_extender:: |
public | function | Static member function to list which sections are defaultable and what items each section contains. | |
views_plugin_display_extender:: |
public | function | ||
views_plugin_display_extender:: |
public | function |
Validate the options form. Overrides views_plugin:: |
|
views_plugin_display_extender:: |
public | function | Set up any variables on the view prior to execution. | |
views_plugin_display_extender:: |
public | function |
Inject anything into the query that the display_extender handler needs. Overrides views_plugin:: |