You are here

function asaf_example_gui_needed_files in Asaf (ajax submit for any form) 7

Same name and namespace in other branches
  1. 8 modules/asaf_example/tests/asaf_example.gui.needed_files.inc \asaf_example_gui_needed_files()
1 string reference to 'asaf_example_gui_needed_files'
asaf_example_menu in modules/asaf_example/asaf_example.module
Implements hook_menu().

File

modules/asaf_example/tests/asaf_example.gui.needed_files.inc, line 3

Code

function asaf_example_gui_needed_files($form, &$form_state) {
  $form['email'] = array(
    '#type' => 'textfield',
    '#title' => t('Email'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Check email'),
  );
  module_load_include('inc', 'asaf_example', 'tests/asaf_example.gui.needed_files.handlers');
  $form['#validate'][] = 'asaf_example_gui_needed_files_validate';
  $form['#submit'][] = 'asaf_example_gui_needed_files_submit';
  return $form;
}