function spaces_context_prefix_provider in Spaces 5.2
Same name and namespace in other branches
- 5 spaces.module \spaces_context_prefix_provider()
Implementation of hook_context_prefix_provider().
File
- ./
spaces.module, line 27
Code
function spaces_context_prefix_provider() {
$items = array();
foreach (spaces_types() as $type => $info) {
$items['spaces_' . $type] = array(
'name' => $info['title'],
'description' => t('Sets a spaces context.'),
'callback' => 'spaces_init_context',
'callback arguments' => array(
$type,
),
'example' => 'my-space',
);
}
return $items;
}