function cmis_sync_menu in CMIS API 6.2
Same name and namespace in other branches
- 6 cmis_sync/cmis_sync.module \cmis_sync_menu()
Implementation of hook_menu() for CMIS sync module.
File
- cmis_sync/
cmis_sync.module, line 23
Code
function cmis_sync_menu() {
foreach (node_get_types() as $type) {
$type_name = $type->type;
$items['admin/settings/cmis/sync/' . $type_name] = array(
'title' => 'Sync ' . $type_name,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cmis_sync_admin_form',
$type_name,
),
'access arguments' => array(
'administer cmis',
),
'file' => 'cmis_sync.admin.inc',
'type' => MENU_NORMAL_ITEM,
'weight' => 1,
);
}
return $items;
}