You are here

function cmis_dev_info in CMIS API 6.3

Same name and namespace in other branches
  1. 6.4 cmis_dev/cmis_dev.module \cmis_dev_info()
  2. 6 cmis_dev/cmis_dev.module \cmis_dev_info()
  3. 6.2 cmis_dev/cmis_dev.module \cmis_dev_info()
  4. 7.2 cmis_dev/cmis_dev.module \cmis_dev_info()
  5. 7 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(
    t('Name'),
    t('Properties'),
  ), $rows);
}