You are here

function iframe_debug in Iframe 7

Same name and namespace in other branches
  1. 8.2 iframe.module \iframe_debug()
  2. 8 iframe.module \iframe_debug()
7 calls to iframe_debug()
iframe_DISABLED_field_widget_settings_form in ./iframe.module
Implements hook_field_widget_settings_form().
iframe_field_attach_presave in ./iframe.module
iframe_field_formatter_view in ./iframe.module
Implements hook_field_formatter_view().
iframe_field_presave in ./iframe.module
Implements hook_field_presave().
iframe_field_validate in ./iframe.module
Implements hook_field_validate().

... See full list

File

./iframe.module, line 22
Defines an iframe field with all attributes.

Code

function iframe_debug($level, $func = 'iframe', $debugvar = NULL) {
  if ($level <= DEBUG_LEVEL) {
    $debugtitle = '[iframe(' . $level . ')] ' . $func;
    if (!function_exists('kpr') && is_readable('../devel/devel.module')) {
      include_once '../devel/devel.module';
    }
    if (function_exists('kpr')) {
      kpr(array(
        $debugtitle,
        $debugvar,
      ), NULL, $debugtitle);
    }
    else {
      drupal_set_message($debugtitle . ' ' . print_r($debugvar, TRUE), 'warning');
    }
  }
}