View source
<?php
function cmis_dev_menu() {
$items['cmis/info'] = array(
'type' => MENU_NORMAL_ITEM,
'title' => t('CMIS Information'),
'page callback' => 'cmis_dev_info',
'access arguments' => array(
'administer site configuration',
),
);
return $items;
}
function cmis_dev_info() {
module_load_include('api.inc', 'cmis');
try {
$repository = cmisapi_getRepositoryInfo();
} catch (CMISException $e) {
cmis_error_handler('cmis_dev', $e);
return '';
}
$rows = array(
array(
t('Name'),
$repository->repositoryName,
),
array(
t('Id'),
$repository->repositoryId,
),
array(
t('rootFolderId'),
$repository->rootFolderId,
),
array(
t('Description'),
$repository->repositoryDescription,
),
array(
t('Vendor'),
$repository->vendorName,
),
array(
t('Version'),
$repository->productVersion,
),
);
return theme('table', array(
t('Name'),
t('Properties'),
), $rows);
}