You are here

function authcache_p13n_form_alter in Authenticated User Page Caching (Authcache) 7.2

Implements hook_form_alter().

Related topics

File

modules/authcache_p13n/authcache_p13n.module, line 468
Provides methods for serving personalized content fragments.

Code

function authcache_p13n_form_alter(&$form, &$form_state, $form_id) {
  if (authcache_p13n_is_authcache_p13n_request()) {

    // When forms are rendered as a part of a personalization fragment remove
    // the action-attribute from the form-element.
    $form['#action'] = "";
  }
}