function spaces_context_conditions in Spaces 6
Same name and namespace in other branches
- 6.2 spaces.module \spaces_context_conditions()
Implementation of hook_context_conditions().
File
- ./
spaces.module, line 305
Code
function spaces_context_conditions() {
$type_options = array();
foreach (spaces_types() as $type => $info) {
$type_options[$type] = $info['title'];
}
$items = array();
$items['spaces_type'] = array(
'#title' => t('Spaces type'),
'#type' => 'checkboxes',
'#options' => $type_options,
'#description' => t('Set this context when the selected space types are active.'),
);
return $items;
}