function acquia_lift_targeting_remove_context_submit in Acquia Lift Connector 7
Submit handler for the "Remove Context" button.
1 string reference to 'acquia_lift_targeting_remove_context_submit'
- acquia_lift_new_target_audience_form in ./
acquia_lift.admin.inc - Form for adding a targeting audience to an agent.
File
- ./
acquia_lift.admin.inc, line 1267 - acquia_lift.admin.inc Provides functions needed for the admin UI.
Code
function acquia_lift_targeting_remove_context_submit($form, &$form_state) {
$parents = $form_state['clicked_button']['#parents'];
$delta_pos = array_search('contexts', $parents) + 1;
$delta = $parents[$delta_pos];
$form_state['to_remove'] = $delta;
$form_state['rebuild'] = TRUE;
}