You are here

function spaces_context_conditions in Spaces 6.2

Same name and namespace in other branches
  1. 6 spaces.module \spaces_context_conditions()

Implementation of hook_context_conditions().

File

./spaces.module, line 335

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;
}