You are here

function theme_cmis_browser_content_properties in CMIS API 6.4

Same name and namespace in other branches
  1. 6.2 cmis_browser/cmis_browser.theme.inc \theme_cmis_browser_content_properties()
  2. 6.3 cmis_browser/cmis_browser.theme.inc \theme_cmis_browser_content_properties()
  3. 7.2 cmis_browser/cmis_browser.theme.inc \theme_cmis_browser_content_properties()
  4. 7 cmis_browser/cmis_browser.theme.inc \theme_cmis_browser_content_properties()

Theme for cmis_browser_content_properties action.

Parameters

$cmis_object:

1 theme call to theme_cmis_browser_content_properties()
cmis_browser_content_properties in cmis_browser/cmis_browser.content_properties.inc
CMIS object properties page.

File

cmis_browser/cmis_browser.theme.inc, line 114

Code

function theme_cmis_browser_content_properties($cmis_object) {
  $output = theme('box', $cmis_object->properties['cmis:name'], $cmis_object->properties['cmis:summary']);
  $header = array(
    t('Property'),
    t('Value'),
  );
  $rows = array();
  foreach ($cmis_object->properties as $property => $value) {
    $rows[] = array(
      '<b>' . $property . '</b>',
      $value,
    );
  }
  return $output . theme('table', NULL, $rows);
}