function animate_any_custom_add_more_remove_one in Animate Any 7
Submit handler for the "Remove" button.
1 string reference to 'animate_any_custom_add_more_remove_one'
- animate_any_settings in ./
animate_any.module - Callback for animate_any_settings.
File
- ./
animate_any.module, line 179 - Add CSS3 cross-browser animation to any Drupal site.
Code
function animate_any_custom_add_more_remove_one($form, &$form_state) {
$delta_remove = $form_state['triggering_element']['#parents'][1];
$k = array_search($delta_remove, $form_state['field_deltas']);
unset($form_state['field_deltas'][$k]);
$form_state['rebuild'] = TRUE;
}