function addtocal_menu in Add to Cal 7
Implements hook_menu().
1 string reference to 'addtocal_menu'
- addtocal_render in ./
addtocal.module - Generate a render array for the addtocal widget.
File
- ./
addtocal.module, line 10 - addtocal.module General functions and hook implementations.
Code
function addtocal_menu() {
$items = array();
foreach (addtocal_get_addtocal_entities() as $entity_name => $values) {
$items[$entity_name . '/%entity_object/%/%/addtocal.ics'] = array(
'load arguments' => array(
$entity_name,
),
'title' => 'Download Event',
'page callback' => 'addtocal_download_ics',
'page arguments' => array(
1,
2,
3,
),
'access callback' => 'entity_access',
'access arguments' => array(
'view',
$entity_name,
1,
),
);
$items[$entity_name . '/%entity_object/%/%/addtocal-google'] = array(
'load arguments' => array(
$entity_name,
),
'title' => 'Download Event',
'page callback' => 'addtocal_google_link',
'page arguments' => array(
1,
2,
3,
),
'access callback' => 'entity_access',
'access arguments' => array(
'view',
$entity_name,
1,
),
);
$items[$entity_name . '/%entity_object/%/%/addtocal-yahoo'] = array(
'load arguments' => array(
$entity_name,
),
'title' => 'Download Event',
'page callback' => 'addtocal_yahoo_link',
'page arguments' => array(
1,
2,
3,
),
'access callback' => 'entity_access',
'access arguments' => array(
'view',
$entity_name,
1,
),
);
}
return $items;
}