function views_plugin_display::get_plugin in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 plugins/views_plugin_display.inc \views_plugin_display::get_plugin()
- 7.3 plugins/views_plugin_display.inc \views_plugin_display::get_plugin()
Get the display or row plugin, if it exists.
6 calls to views_plugin_display::get_plugin()
- views_plugin_display::options_form in plugins/
views_plugin_display.inc - Provide the default form for setting options.
- views_plugin_display::options_submit in plugins/
views_plugin_display.inc - Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
- views_plugin_display::options_validate in plugins/
views_plugin_display.inc - Validate the options form.
- views_plugin_display::uses_fields in plugins/
views_plugin_display.inc - Determine if the display's style uses fields.
- views_plugin_display::validate in plugins/
views_plugin_display.inc - Make sure the display and all associated handlers are valid.
File
- plugins/
views_plugin_display.inc, line 503 - Contains the base display plugin.
Class
- views_plugin_display
- The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.
Code
function get_plugin($type = 'style', $name = NULL) {
if (!$name) {
$name = $this
->get_option($type . '_plugin');
}
$plugin = views_get_plugin($type, $name);
if ($plugin) {
$options = $this
->get_option($type . '_options');
$plugin
->init($this->view, $this->display, $options);
return $plugin;
}
}