function theme_cmis_browser_content_properties in CMIS API 7
Same name and namespace in other branches
- 6.4 cmis_browser/cmis_browser.theme.inc \theme_cmis_browser_content_properties()
- 6.2 cmis_browser/cmis_browser.theme.inc \theme_cmis_browser_content_properties()
- 6.3 cmis_browser/cmis_browser.theme.inc \theme_cmis_browser_content_properties()
- 7.2 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 161
Code
function theme_cmis_browser_content_properties($variables) {
$summary = !empty($variables['cmis_object']->properties['cmis:summary']) ? $variables['cmis_object']->properties['cmis:summary'] : array_pop($variables['cmis_object']->properties);
$output = '<div class="container">';
$output .= '<p>' . $variables['cmis_object']->properties['cmis:name'] . ' - ' . l('Download', 'cmis/browser', array(
'query' => array(
'id' => $variables['cmis_object']->properties['cmis:objectId'],
),
)) . '</p>';
$output .= '<p>' . $summary . '<p>';
$output .= '</div>';
$header = array(
t('Property'),
t('Value'),
);
$rows = array();
foreach ($variables['cmis_object']->properties as $property => $value) {
$rows[] = array(
'<b>' . $property . '</b>',
$value,
);
}
return $output . theme('table', array(
'title' => NULL,
'rows' => $rows,
));
}