You are here

function spaces_purl_provider in Spaces 6.2

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

Implementation of hook_purl_provider().

File

./spaces.module, line 51

Code

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