function context_groups_form_context_reaction_delete_confirm_alter in Context groups 8
Same name and namespace in other branches
- 8.2 context_groups.module \context_groups_form_context_reaction_delete_confirm_alter()
Implements hook_form_FORM_ID_alter().
File
- ./
context_groups.module, line 152 - Hooks and helper functions.
Code
function context_groups_form_context_reaction_delete_confirm_alter(&$form, FormStateInterface $form_state, $form_id) {
// Add context_id to form_state.
$context = $form_state
->getBuildInfo();
$context_id = $context['args'][0]
->id();
$form_state
->set('context_id', $context_id);
$form['#submit'][] = 'context_groups_reaction_delete_submit';
}