function node_expire_debug in Node expire 8
Same name and namespace in other branches
- 7 node_expire.module \node_expire_debug()
Utility to display debug info.
Display debug info and write it into log.
Parameters
object $data: Data to display.
File
- ./
node_expire.module, line 356 - Set a timer into your content, allowing you to perform customized actions.
Code
function node_expire_debug($data = array()) {
drupal_set_message(filter_xss_admin('<pre>' . print_r($data, TRUE) . '</pre>'));
\Drupal::logger('node_expire')
->notice('<pre>' . print_r($data, TRUE) . '</pre>', []);
}