function social_post_album_form_comment_form_alter in Open Social 10.0.x
Same name and namespace in other branches
- 10.3.x modules/social_features/social_post/modules/social_post_album/social_post_album.module \social_post_album_form_comment_form_alter()
- 10.1.x modules/social_features/social_post/modules/social_post_album/social_post_album.module \social_post_album_form_comment_form_alter()
- 10.2.x modules/social_features/social_post/modules/social_post_album/social_post_album.module \social_post_album_form_comment_form_alter()
Implements hook_form_FORM_ID_alter().
File
- modules/
social_features/ social_post/ modules/ social_post_album/ social_post_album.module, line 163 - The Social post album module.
Code
function social_post_album_form_comment_form_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['actions']['submit']['#submit'][] = 'social_post_album_comment_redirect';
}