function rules_action_drupal_watchdog

Action: Write a watchdog db log message.

Related topics

1 string reference to 'rules_action_drupal_watchdog'
rules_system_action_info in modules/system.rules.inc
Implements hook_rules_action_info() on behalf of the system module.

File

modules/system.eval.inc, line 22

Code

function rules_action_drupal_watchdog($type, $message, $severity, $link_text, $link_path) {
    if (!empty($link_path)) {
        // Use $link_path for the text if no specific text was supplied.
        $link = l(!empty($link_text) ? $link_text : $link_path, url($link_path));
    }
    else {
        $link = NULL;
    }
    watchdog($type, $message, array(), $severity, $link);
}