1 action_example.module action_example_basic_action_form($form, &$form_state)

Form to display the basic action.

Related topics

File

modules/examples/action_example/action_example.module, line 271
Action definition example module.

Code

function action_example_basic_action_form($form, &$form_state) {
  $form = array();
  $form['intro'] = array(
    '#type' => 'markup',
    '#markup' => t("<div>Demonstrates a basic action.</div>"),
  );

  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Execute'),
  );

  return $form;
}