function authcache_admin_pagecaching_remove_one in Authenticated User Page Caching (Authcache) 7.2
Same name and namespace in other branches
- 7 authcache.admin.inc \authcache_admin_pagecaching_remove_one()
Submit handler for the remove button.
Removes the item specified in the #authcache_rule_id attribute specified in the triggering_element.
1 string reference to 'authcache_admin_pagecaching_remove_one'
- _authcache_pagecache_form in ./
authcache.admin.inc - Add new page caching rule to form (part of ajax).
File
- ./
authcache.admin.inc, line 306 - Admin forms and pages.
Code
function authcache_admin_pagecaching_remove_one($form, &$form_state) {
if (isset($form_state['triggering_element']['#authcache_rule_id'])) {
unset($form_state['rules'][$form_state['triggering_element']['#authcache_rule_id']]);
}
$form_state['rebuild'] = TRUE;
}