function theme_microdata_mapping_admin_overview_row in Microdata 7
Theme function to output a field's row in the bundle mapping table.
1 theme call to theme_microdata_mapping_admin_overview_row()
- theme_microdata_mapping_admin in ./
microdata.admin.inc - Theme function to output the table for a bundle's mappings.
File
- ./
microdata.admin.inc, line 437 - Microdata administration and module settings UI.
Code
function theme_microdata_mapping_admin_overview_row($variables) {
$field = $variables['field'];
$mapping = $variables['microdata_mapping'];
$field_label = '<strong>' . t($field['label']) . '</strong>';
if ($mapping['#value_type'] == 'item') {
if (isset($mapping['#entity_type'])) {
$itemtype = '<em>see ' . check_plain($mapping['#entity_type']) . ' mapping</em>';
}
elseif (isset($mapping['#itemtype'])) {
$itemtype = implode(', ', $mapping['#itemtype']);
}
}
else {
$itemtype = '-';
}
$itemprop = isset($mapping['#itemprop']) ? implode(', ', $mapping['#itemprop']) : '';
$row = array(
$field_label,
check_plain($itemprop),
check_plain($itemtype),
);
return $row;
}