You are here

function macro_import_macro in Macro 7

Same name and namespace in other branches
  1. 6 macro.module \macro_import_macro()

A form callback that displays the macro import form.

Return value

a form for importing a previously recorded macro

2 string references to 'macro_import_macro'
macro_form_alter in ./macro.module
Implementation of hook_form_alter().
macro_menu in ./macro.module
Implementation of hook_menu().

File

./macro.module, line 326
allow administrators to record (export) form submissions allow administrators to replay (import) form submissions

Code

function macro_import_macro() {
  $form['macro'] = array(
    '#type' => 'textarea',
    '#title' => 'macro to import',
    '#rows' => 20,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('play macro'),
  );
  return $form;
}