function authcache_block_form_block_admin_configure_alter in Authenticated User Page Caching (Authcache) 7.2
Implements hook_form_alter().
File
- modules/
authcache_block/ authcache_block.module, line 71 - Authcache support for block module.
Code
function authcache_block_form_block_admin_configure_alter(&$form, &$form_state, $form_id) {
if (user_access('configure authcache blocks')) {
$block_id = "{$form['module']['#value']}-{$form['delta']['#value']}";
$form['authcache'] = array(
'#type' => 'fieldset',
'#title' => t('Authcache personalization'),
);
$form['authcache']['authcache_settings'] = array(
'#type' => 'authcache_p13n_config',
'#default_value' => variable_get('authcache_block-' . $block_id, array()),
);
$form['#submit'][] = 'authcache_block_config_submit';
}
}