function hook_spaces_registry in Spaces 6.3
Same name and namespace in other branches
- 7.3 spaces.api.php \hook_spaces_registry()
- 7 spaces.api.php \hook_spaces_registry()
Registry hook for controllers, space types.
Each entry associates a controller or space type with the CTools plugin to be used as its plugin class. For space types, a path may be provided where spaces-specific menu items can be automatically grafted in as local tasks.
4 functions implement hook_spaces_registry()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- spaces_og_spaces_registry in spaces_og/
spaces_og.module - Implementation of hook_spaces_registry().
- spaces_spaces_registry in ./
spaces.module - Implementation of hook_spaces_registry().
- spaces_taxonomy_spaces_registry in spaces_taxonomy/
spaces_taxonomy.module - Implementation of hook_spaces_registry().
- spaces_user_spaces_registry in spaces_user/
spaces_user.module - Implementation of hook_spaces_registry().
1 invocation of hook_spaces_registry()
- _spaces_registry in ./
spaces.module - Registry retrieval and caching.
File
- ./
spaces.api.php, line 32 - Hooks provided by Spaces.
Code
function hook_spaces_registry() {
return array(
'controllers' => array(
'object_type' => array(
'title' => t('Name of the object type'),
'plugin' => 'spaces_controller_object_type',
),
),
'types' => array(
'space_foo' => array(
'title' => t('Name of the space type'),
'plugin' => 'space_foo',
'path' => 'foo/%foo',
),
),
);
}