You are here

function macro_export_macro in Macro 7

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

A form callback that displays the macro exported.

The output of this callback should be saved to the profiles/$profile/macros.inc file, to be automatically played back upon completed install.

Return value

a textarea containing the recorded macros

2 string references to 'macro_export_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 254
allow administrators to record (export) form submissions allow administrators to replay (import) form submissions

Code

function macro_export_macro() {
  $form['code'] = array(
    '#type' => 'textarea',
    '#title' => 'macros exported',
    '#default_value' => macro_get_macro(),
    '#rows' => 20,
  );
  $form['save'] = array(
    '#type' => 'submit',
    '#value' => 'submit',
  );
  return $form;
}