function querypath_examples_menu in QueryPath 6
Same name and namespace in other branches
- 7.3 querypath_examples.module \querypath_examples_menu()
- 7.2 querypath_examples.module \querypath_examples_menu()
Implements hook_menu();
File
- ./
querypath_examples.module, line 20 - The main file for querypath_examples.
Code
function querypath_examples_menu() {
$items = array();
$items['qp/rss'] = array(
'title' => t('Transform an RSS feed'),
'description' => t('Grab a remote RSS feed and transform it into HTML.'),
'page callback' => 'querypath_examples_show_rss',
'page arguments' => array(),
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'access content',
),
);
$items['qp/sticky'] = array(
'title' => t('Show sticky nodes'),
'description' => t('Grab a list of sticky nodes and display it.'),
'page callback' => 'querypath_examples_show_sticky_nodes',
'page arguments' => array(),
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'access content',
),
);
$items['qp/twitter'] = array(
'title' => t('Show Twitters'),
'description' => t('Show public timeline from Twitter3.'),
'page callback' => 'querypath_examples_show_twitter',
'page arguments' => array(),
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'access content',
),
);
$items['qp/musicbrainz'] = array(
'title' => t('Show MusicBrainz data'),
'description' => t('Query the MusicBrainz library.'),
'page callback' => 'querypath_examples_show_musicbrainz',
'page arguments' => array(),
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'access content',
),
);
$items['qp/sparql'] = array(
'title' => t('Run SPARQL query'),
'description' => t('Query a SPARQL endpoint and display the results.'),
'page callback' => 'querypath_examples_show_sparql',
'page arguments' => array(),
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'access content',
),
);
$items['qp/ld'] = array(
'title' => t('Related References'),
'description' => t('View linked data for a particular path.'),
'page callback' => 'querypath_examples_show_ld',
'page arguments' => array(),
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'access content',
),
);
$items['qp/multiplerss'] = array(
'title' => t('Show Multiple RSS Feeds'),
'description' => t('Show multiple RSS feeds.'),
'page callback' => 'querypath_examples_show_multiplerss',
'page arguments' => array(),
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'access content',
),
);
return $items;
}