You are here

function hook_spaces_plugins in Spaces 7

Same name and namespace in other branches
  1. 6.3 spaces.api.php \hook_spaces_plugins()
  2. 7.3 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
Implements hook_spaces_plugins().
spaces_og_spaces_plugins in spaces_og/spaces_og.module
Implements hook_spaces_plugins().
spaces_spaces_plugins in ./spaces.module
Implements hook_spaces_plugins().
spaces_taxonomy_spaces_plugins in spaces_taxonomy/spaces_taxonomy.module
Implements hook_spaces_plugins().
spaces_user_spaces_plugins in spaces_user/spaces_user.module
Implements 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;
}