You are here

function spaces_purl_provider in Spaces 6

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

Implementation of hook_purl_provider().

File

./spaces.module, line 30

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