function fasttoggle_comment_comment_view in Fasttoggle 7
Implements hook_comment_view().
File
- module/
fasttoggle_comment/ fasttoggle_comment.module, line 62
Code
function fasttoggle_comment_comment_view($comment, $view_mode) {
$options = fasttoggle_get_allowed_links('comment', $comment);
if (!empty($options['fields'])) {
foreach ($options['fields'] as $group => $flags) {
if (!empty($flags['instances'])) {
foreach ($flags['instances'] as $key => $data) {
$comment->content['links']['comment']['#links']['fasttoggle_' . $group . '_' . $key] = fasttoggle($options, $group, $key, $comment, FASTTOGGLE_FORMAT_LINK_ARRAY);
}
}
}
}
}