You are here

function macro_import_macro_submit in Macro 6

Same name and namespace in other branches
  1. 7 macro.module \macro_import_macro_submit()

Implementation of macro_import_macro hook_submit function.

Plays back the submitted macro.

File

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

Code

function macro_import_macro_submit($form, &$form_state) {
  include_once './includes/install.inc';
  eval($form_state['values']['macro']);
  drupal_execute_macro($macro);
}