function animate_any_edit_animate_block_submit in Animate Any 7
Edit Animate Block Submit Function.
File
- ./
animate_any.module, line 395 - Add CSS3 cross-browser animation to any Drupal site.
Code
function animate_any_edit_animate_block_submit($form, &$form_state) {
// update the data for current element
$parent = $form_state['values']['parent_class'];
$aid = $form_state['values']['aid'];
$identifiers = json_encode($form_state['values']['animate_fieldset']);
$data = db_merge('animate_any');
$data
->key(array(
'aid' => $aid,
));
$data
->fields(array(
'parent' => $parent,
'identifier' => $identifiers,
));
$valid = $data
->execute();
if ($valid) {
drupal_set_message(t('Animation settings updated.'));
}
}