You are here

function coder_upgrade_debug_print in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/includes/main.inc \coder_upgrade_debug_print()

Prints debug information if debug flag is on.

Parameters

mixed $text: A string, array, or object to print.

3 calls to coder_upgrade_debug_print()
cdp in coder_upgrade/includes/main.inc
CoderUpgradeUnitTestCase::captureThemeInfo in coder_upgrade/coder_upgrade.test
Stores the theme registry for core modules and the modules being upgraded.
CoderUpgradeUnitTestCase::testRunInterface in coder_upgrade/coder_upgrade.test
Tests the upgrade routines (outside of the user interface).

File

coder_upgrade/includes/main.inc, line 729
Manages application of conversion routines, logging, and patch file creation.

Code

function coder_upgrade_debug_print($text) {
  global $_coder_upgrade_debug;
  static $path = '';
  if (!$_coder_upgrade_debug) {
    return;
  }
  if (!$path) {
    $path = coder_upgrade_path('debug');

    //     coder_upgrade_path_clear('log');
  }
  coder_upgrade_path_print($path, $text);
}