function trigger_example_form_submit in Examples for Developers 7
Same name and namespace in other branches
- 6 trigger_example/trigger_example.module \trigger_example_form_submit()
Submit handler for the trigger_example_form().
Related topics
File
- trigger_example/
trigger_example.module, line 288 - Trigger definition example module.
Code
function trigger_example_form_submit($form, $form_state) {
// If the user clicked the button, then run the triggersomething trigger.
if ($form_state['values']['op'] == t('Run triggersomething event')) {
trigger_example_triggersomething();
}
}