You are here

function authcache_admin_pagecaching_add_one in Authenticated User Page Caching (Authcache) 7

Same name and namespace in other branches
  1. 7.2 authcache.admin.inc \authcache_admin_pagecaching_add_one()

Submit handler for the add button.

Appends a new item to the end of the rules array.

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

File

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

Code

function authcache_admin_pagecaching_add_one($form, &$form_state) {
  list($first_rule) = variable_get('authcache_pagecaching', array(
    array(),
  ));
  $form_state['rules'][] = $first_rule;
  $form_state['rebuild'] = TRUE;
}