You are here

function hook_spaces_plugins in Spaces 6.3

Same name and namespace in other branches
  1. 7.3 spaces.api.php \hook_spaces_plugins()
  2. 7 spaces.api.php \hook_spaces_plugins()

CTools plugin API hook for Spaces. Note that a proper entry in hook_ctools_plugin_api() must exist for this hook to be called.

5 functions implement hook_spaces_plugins()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

spaces_customtext_spaces_plugins in spaces_customtext/spaces_customtext.module
Implementation of hook_spaces_plugins().
spaces_og_spaces_plugins in spaces_og/spaces_og.module
Implementation of hook_spaces_plugins().
spaces_spaces_plugins in ./spaces.module
Implementation of hook_spaces_plugins().
spaces_taxonomy_spaces_plugins in spaces_taxonomy/spaces_taxonomy.module
Implementation of hook_spaces_plugins().
spaces_user_spaces_plugins in spaces_user/spaces_user.module
Implementation of hook_spaces_plugins().

File

./spaces.api.php, line 12
Hooks provided by Spaces.

Code

function hook_spaces_plugins() {
  $plugins = array();
  $plugins['space_foo'] = array(
    'handler' => array(
      'path' => drupal_get_path('module', 'foo') . '/plugins',
      'file' => 'space_foo.inc',
      'class' => 'space_foo',
      'parent' => 'space_type',
    ),
  );
  return $plugins;
}