You are here

function entity_background_get_background_plugin in Entity background 7

Get entity background plugin.

Parameters

$name: A plugin name.

Return value

array|boolean An array of information arrays about the plugin received or FALSE if plugin with such name doesn't exist.

2 calls to entity_background_get_background_plugin()
EntityBackgroundAPITest::testEntityBackgroundTestAPI in tests/entity_background.test
Test basic APIs.
entity_background_find_background_plugin in ./entity_background.module
Find out if the plugin for the specified entity exists and return it.

File

./entity_background.module, line 161
Module file entity background.

Code

function entity_background_get_background_plugin($name) {
  ctools_include('plugins');
  $plugins = ctools_get_plugins('entity_background', EB_PLUGIN);
  return !empty($plugins[$name]) ? $plugins[$name] : FALSE;
}