function trigger_example_form in Examples for Developers 7
Same name and namespace in other branches
- 6 trigger_example/trigger_example.module \trigger_example_form()
Trigger example test form.
Provides a button to run the triggersomething event.
Related topics
1 string reference to 'trigger_example_form'
- trigger_example_menu in trigger_example/
trigger_example.module - Implements hook_menu().
File
- trigger_example/
trigger_example.module, line 277 - Trigger definition example module.
Code
function trigger_example_form($form_state) {
$form['triggersomething'] = array(
'#type' => 'submit',
'#value' => t('Run triggersomething event'),
);
return $form;
}