You are here

function activity_comments_wrap in Activity 6.2

Same name and namespace in other branches
  1. 7 activity_comments/activity_comments.module \activity_comments_wrap()

FAPI pre_render function

2 string references to 'activity_comments_wrap'
activity_comments_comment_insert in activity_comments/activity_comments.module
Insert comments menu callback.
activity_comments_form in activity_comments/activity_comments.module
Add comment form.

File

activity_comments/activity_comments.module, line 215
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);
}