You are here

function authcache_admin_pagecaching_add_one in Authenticated User Page Caching (Authcache) 7.2

Same name and namespace in other branches
  1. 7 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 294
Admin forms and pages.

Code

function authcache_admin_pagecaching_add_one($form, &$form_state) {
  list($default_rule) = _authcache_default_pagecaching();
  $form_state['rules'][] = $default_rule;
  $form_state['rebuild'] = TRUE;
}