You are here

function views_get_plugin in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 8.3 views.module \views_get_plugin()
  2. 6.2 views.module \views_get_plugin()
  3. 7.3 views.module \views_get_plugin()

Get a handler for a plugin

Return value

views_plugin

The created plugin object.

14 calls to views_get_plugin()
view::init_display in includes/view.inc
Set the display for this view and initialize the display handler.
view::init_localization in includes/view.inc
Find and initialize the localizer plugin.
view::init_query in includes/view.inc
Do some common building initialization.
view::init_style in includes/view.inc
Find and initialize the style plugin.
views_db_object::new_display in includes/view.inc
Create a new display and a display handler for it.

... See full list

File

./views.module, line 919
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_get_plugin($type, $plugin, $reset = FALSE) {
  $definition = views_fetch_plugin_data($type, $plugin, $reset);
  if (!empty($definition)) {
    return _views_create_handler($definition, $type);
  }
}