function template_preprocess_feedback_entry in Feedback 7.2
Process variables for feedback-entry.tpl.php.
The $variables array contains the following arguments:
- $entry
See also
File
- ./
feedback.admin.inc, line 429 - Administrative functionality for Feedback module.
Code
function template_preprocess_feedback_entry(&$variables) {
foreach (element_children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
$entry = $variables['elements']['#feedback'];
// Preprocess fields.
field_attach_preprocess('feedback', $entry, $variables['elements'], $variables);
$variables['location'] = l($entry->location, $entry->url);
$variables['date'] = format_date($entry->timestamp, 'small');
$variables['account'] = check_plain(format_username($entry));
}