function theme_diff_inline_metadata in Diff 6.2
Same name and namespace in other branches
- 7.3 diff.theme.inc \theme_diff_inline_metadata()
- 7.2 diff.theme.inc \theme_diff_inline_metadata()
Display inline diff metadata.
1 theme call to theme_diff_inline_metadata()
- diff_inline_show in ./
diff.pages.inc - Show the inline diff for a given node, vid. If vid = 0 or no previous vid exists for the given revision returns the normally rendered content of the specified revision.
File
- ./
diff.theme.inc, line 284 - Themeable function callbacks for diff.module.
Code
function theme_diff_inline_metadata($node) {
drupal_add_css(drupal_get_path('module', 'diff') . '/diff.css');
$output = "<div class='diff-inline-metadata clear-block'>";
$output .= "<div class='diff-inline-byline'>";
$output .= t('Updated by !name on @date', array(
'!name' => theme('username', $node),
'@date' => format_date($node->revision_timestamp, 'small'),
));
$output .= "</div>";
$output .= "<div class='diff-inline-legend clear-block'>";
$output .= "<label>" . t('Legend') . "</label>";
$output .= theme('diff_inline_chunk', t('Added'), 'add');
$output .= theme('diff_inline_chunk', t('Changed'), 'change');
$output .= theme('diff_inline_chunk', t('Deleted'), 'delete');
$output .= "</div>";
$output .= "</div>";
return $output;
}