function user_comment_view
user_comment_view($comment)
Implements hook_comment_view().
File
- modules/user/user.module, line 3536
- Enables the user registration and login system.
Code
function user_comment_view($comment) { if (variable_get('user_signatures', 0) && !empty($comment->signature)) { // @todo This alters and replaces the original object value, so a // hypothetical process of loading, viewing, and saving will hijack the // stored data. Consider renaming to $comment->signature_safe or similar // here and elsewhere in Drupal 8. $comment->signature = check_markup($comment->signature, $comment->signature_format, '', TRUE); } else { $comment->signature = ''; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.module/function/user_comment_view/7.x