You are here

function rdfx_menu in RDF Extensions 7.2

Implements hook_menu().

File

./rdfx.module, line 45
Extends the RDF API of Drupal core to support more RDF seralizations formats other RDF capabilities.

Code

function rdfx_menu() {

  // @todo use access RDF data permission instead of access content.
  //   $items['ns'] = array(
  //     'title' => 'Site vocabulary',
  //     'description' => 'RDF description of the site schema.',
  //     'page callback' => 'drupal_get_form',
  //     'access arguments' => array('access content'),
  //     'file' => 'rdfx.pages.inc',
  //   );
  // Add config options to the Services block on the config page. RDF is not
  // technically a service, but neither is RSS. RDF and RSS are very closely
  // aligned.
  $config_base = array(
    'access arguments' => array(
      'administer rdf',
    ),
    'file' => 'rdfx.admin.inc',
  );
  $items['admin/config/services/rdf'] = array(
    'title' => 'RDF publishing settings',
    'description' => 'Configure how site content gets published in RDF.',
    'page callback' => 'rdfx_mapping_overview',
  ) + $config_base;
  $items['admin/config/services/rdf/mappings'] = array(
    'title' => 'RDF Mappings',
    'description' => 'Configure how site content gets published in RDF.',
    'page callback' => 'rdfx_mapping_overview',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  ) + $config_base;
  $items['admin/config/services/rdf/namespaces'] = array(
    'title' => 'RDF namespaces',
    'description' => 'See all namespaces and their prefixes.',
    'page callback' => 'rdfx_admin_namespaces',
    'type' => MENU_LOCAL_TASK,
  ) + $config_base;
  return $items;
}