You are here

function macro_init in Macro 7

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

Implementation of hook_init().

File

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

Code

function macro_init() {
  if (empty($_POST) && variable_get('macro_enabled', FALSE)) {
    $args = array(
      '%d' => count(variable_get('macro_submissions', array())),
      '!link' => l('End session', 'admin/macro/export/session/end'),
    );
    drupal_set_message(t('[Active macros: %d | !link]', $args));
  }
}