You are here

function hook_spaces_registry_alter in Spaces 6.3

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

Alter the registry.

Allows modules to alter the registry. Default plugins can be replaced by custom ones declared in hook_spaces_plugins().

Parameters

$registry: The registry, passed by reference.

1 invocation of hook_spaces_registry_alter()
_spaces_registry in ./spaces.module
Registry retrieval and caching.

File

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

Code

function hook_spaces_registry_alter(&$registry) {
  if (isset($registry['controllers']['variable'])) {
    $registry['controllers']['variable']['plugin'] = 'custom_controller_plugin';
  }
}