You are here

function activity_comments_insert_ajax_callback in Activity 7

1 string reference to 'activity_comments_insert_ajax_callback'
activity_comments_form in activity_comments/activity_comments.module
Add comment form.

File

activity_comments/activity_comments.module, line 239
Provides comment handling for activity messages

Code

function activity_comments_insert_ajax_callback($form, $form_state) {
  $key = array_search('activity_comments_add_js', $form['#pre_render']);
  if ($key !== FALSE) {
    unset($form['#pre_render'][$key]);
  }
  return $form;
}