summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 4e0c134ea..4ddedd140 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -2805,3 +2805,35 @@ function user_forms() {
return $forms;
}
+/**
+ * Implementation of hook_comments().
+ */
+function user_comment($comment, $op) {
+ // Validate signature.
+ if ($op == 'view') {
+ if (!empty($comment->signature)) {
+ $comment->signature = check_markup($comment->signature, $comment->format);
+ }
+ else {
+ $comment->signature = '';
+ }
+ }
+}
+
+/**
+ * Theme output of user signature.
+ *
+ * @ingroup themeable
+ */
+function theme_user_signature($signature) {
+ $output = '';
+ if ($signature) {
+ $output .= '<div class="clear">';
+ $output .= '<div>'. '—' .'</div>';
+ $output .= $signature;
+ $output .= '</div>';
+ }
+
+ return $output;
+}
+