function authcache_form_comment_form_alter in Authenticated User Page Caching (Authcache) 7
Same name and namespace in other branches
- 7.2 authcache.module \authcache_form_comment_form_alter()
Implements hook_form_BASE_FORM_ID_alter(),
File
- ./
authcache.module, line 414 - Authenticated User Page Caching (and anonymous users, too!)
Code
function authcache_form_comment_form_alter(&$form, &$form_state, $form_id) {
global $user, $_authcache_is_cacheable;
// Forms for logged-in users
if ($user->uid && $_authcache_is_cacheable) {
$form['author']['_author']['#markup'] = '<span class="authcache-user"></span>';
}
}