You are here

function authcache_ahah_add in Authenticated User Page Caching (Authcache) 6

Generic AHAH add

1 string reference to 'authcache_ahah_add'
authcache_admin_pagecaching in ./authcache.admin.inc
Page caching rules form

File

./authcache.admin.inc, line 471
Admin forms and pages.

Code

function authcache_ahah_add($form, &$form_state) {
  if (isset($form_state['values']['ahah'])) {
    $ahah_form['ahah_form'] = $form_state['values']['ahah'];
  }
  $ahah_form['ahah_form'][] = array();
  unset($form_state['submit_handlers']);
  form_execute_handlers('submit', $form, $form_state);
  $form_state['ahah_form'] = $ahah_form;
  $form_state['rebuild'] = TRUE;
}