function theme_quotes_author in Quotes 7
Theamable function that displays the author as is or as a link.
2 calls to theme_quotes_author()
- quotes_node_view in ./
quotes.module - Implements hook_node_view().
- quotes_view in ./
quotes.module - Implements hook_view().
File
- ./
quotes.module, line 1574 - The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.
Code
function theme_quotes_author(&$variables) {
$node = $variables['node'];
$format = $variables['format'];
// Add Author if present.
if (!empty($node->quotes_author)) {
$author = $node->quotes_author;
if (variable_get('quotes_author_link', FALSE)) {
$author = l($author, "quotes/author/{$author}", array(
'title' => t('Read more about %author', array(
'%author' => $author,
)),
));
$author = decode_entities($author);
}
else {
$author = check_markup($author, $format, $node->language, FALSE);
}
$node->content['quotes_author'] = array(
'#prefix' => '<div class="quotes-author">' . variable_get('quotes_leader', '—') . ' ',
'#suffix' => '</div>',
'#markup' => $author,
);
}
$variables['node'] = $node;
}