You are here

function rules_test_show_log in Rules 6

Returns the log and clears it afterwards

5 calls to rules_test_show_log()
RulesTestCase::test_1 in rules_test/rules_test.test
RulesTestCase::test_2 in rules_test/rules_test.test
RulesTestCase::test_3 in rules_test/rules_test.test
RulesTestCase::test_4 in rules_test/rules_test.test
RulesTestCase::test_5 in rules_test/rules_test.test

File

rules_test/rules_test.module, line 11
Rules engine testing module

Code

function rules_test_show_log(&$error) {
  global $_rules_log;
  if (is_array($_rules_log) && count($_rules_log)) {
    $i = 0;
    $msg = _rules_show_log($i, $_rules_log, $error);
    $_rules_log = NULL;
    return $msg;
  }
  return FALSE;
}