function activity_comments_wrap in Activity 7
Same name and namespace in other branches
- 6.2 activity_comments/activity_comments.module \activity_comments_wrap()
FAPI pre_render function
1 string reference to 'activity_comments_wrap'
- activity_comments_form in activity_comments/
activity_comments.module - Add comment form.
File
- activity_comments/
activity_comments.module, line 210 - Provides comment handling for activity messages
Code
function activity_comments_wrap($form) {
// Wrap the form so we can use ahah on it
$wrap['wrapper'] = array(
'#prefix' => '<div id="activity-comments-' . $form['aid']['#value'] . '" class="activity-comments-hide-comments">',
'#suffix' => '</div>',
);
return array_merge($wrap['wrapper'], $form);
}