function rotor_submit in Rotor Banner 7
Same name and namespace in other branches
- 5.7 rotor.module \rotor_submit()
- 5 rotor.module \rotor_submit()
- 6.2 rotor.module \rotor_submit()
- 6 rotor.module \rotor_submit()
Node form submit function. We handle the image submition.
1 string reference to 'rotor_submit'
- rotor_form in ./
rotor.module - Node form hook
File
- ./
rotor.module, line 176 - A rotor banner consists in a set of images that will be changing. This module is made using jquery.
Code
function rotor_submit(&$form, &$form_state) {
// Remove the target attribute if not selected.
if (!$form_state['values']['link_target'] || $form_state['values']['link_target'] == "default") {
unset($form_state['values']['link_target']);
}
}