function cmis_dev_info in CMIS API 7
Same name and namespace in other branches
- 6.4 cmis_dev/cmis_dev.module \cmis_dev_info()
- 6 cmis_dev/cmis_dev.module \cmis_dev_info()
- 6.2 cmis_dev/cmis_dev.module \cmis_dev_info()
- 6.3 cmis_dev/cmis_dev.module \cmis_dev_info()
- 7.2 cmis_dev/cmis_dev.module \cmis_dev_info()
Return CMIS Repository Information such as repo name, repo description, vendor name, product name and product version.
1 string reference to 'cmis_dev_info'
- cmis_dev_menu in cmis_dev/
cmis_dev.module - Implementation of hook_menu()
File
- cmis_dev/
cmis_dev.module, line 21
Code
function cmis_dev_info() {
module_load_include('api.inc', 'cmis');
try {
$repository = cmis_get_repository();
} catch (CMISException $e) {
cmis_error_handler('cmis_dev', $e);
return '';
}
$rows = array();
foreach ($repository->info->repositoryInfo as $property_name => $property) {
$rows[] = array(
t($property_name),
$property,
);
}
return theme('table', array(
'header' => array(
t('Name'),
t('Properties'),
),
'rows' => $rows,
));
}