function views_get_plugin

3.x views.module views_get_plugin($type, $plugin, $reset = FALSE)
2.x views.module views_get_plugin($type, $plugin)

Get a handler for a plugin

Return value

views_plugin

The created plugin object.

17 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_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.
views_handler_argument::default_argument_form in handlers/views_handler_argument.inc
Provide a form for selecting the default argument when the default action is set to provide default argument.
views_handler_argument::get_default_argument in handlers/views_handler_argument.inc
Get a default argument, if available.

... See full list

File

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

Code

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