function commons_origins_preprocess_comment in Drupal Commons 7.3
Implements hook_preprocess_comment().
File
- themes/
commons/ commons_origins/ template.php, line 458 - Process theme data.
Code
function commons_origins_preprocess_comment(&$variables, $hook) {
$variables['content']['links']['#attributes']['class'][] = 'comment-links';
// Push the reporting link to the end.
if (!empty($variables['content']['links']['flag']['#links']['flag-inappropriate_comment'])) {
$variables['content']['report_link'] = array(
'#markup' => $variables['content']['links']['flag']['#links']['flag-inappropriate_comment']['title'],
);
$variables['content']['links']['flag']['#links']['flag-inappropriate_comment']['#access'] = FALSE;
}
}