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 262
Hook implementations for the Action 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;
}