You are here

function _pages_restriction_debug_info in Pages Restriction Access 7

Prints a watchdog message if debug mode is active.

Parameters

string $message: String with message. Can contain placeholders.

array $params: Array with params to use on $message placeholders.

string $watchdog_type: Type of Watchdog. Defaults to WATCHDOG_INFO.

3 calls to _pages_restriction_debug_info()
_pages_restriction_restrict_access in includes/pages_restriction.helpers.inc
Restriction rules feature for Pages Restriction.
_pages_restriction_set_next_page_path in includes/pages_restriction.helpers.inc
Update page on cache so it can be retrieved later.
_pages_restriction_unset_sections_with_path in includes/pages_restriction.helpers.inc
Implements OneTouch Restriction Access.

File

includes/pages_restriction.helpers.inc, line 290
Contains the helpers functions for the Pages Restriction.

Code

function _pages_restriction_debug_info($message, array $params = [], $watchdog_type = WATCHDOG_INFO) {
  if (variable_get('pages_restriction_debug_mode', FALSE)) {
    watchdog('pages_restriction', $message, $params, $watchdog_type);
  }
}