function mailhandler_watchdog_deprecated in Mailhandler 6
Record deprecated function usages using watchdog.
Usefull to remove backward compatibility in a future.
Related topics
3 calls to mailhandler_watchdog_deprecated()
- mailhandler_get_mailbox in ./
mailhandler.module - (DEPRECATED) Fetch data for a specific mailbox from the database.
- mailhandler_open_mailbox in ./
mailhandler.retrieve.inc - (DEPRECATED) Establish IMAP stream connection to specified mailbox.
- mailhandler_switch_user in ./
mailhandler.retrieve.inc - (DEPRECATED) Switch from original user to mail submision user and back.
File
- ./
mailhandler.module, line 1436 - Mailhandler module code.
Code
function mailhandler_watchdog_deprecated() {
// Record warning information about a deprecated function call, so we can
// track wich modules are still using it.
$caller = _mailhandler_get_last_caller(debug_backtrace());
$call = basename($caller['file']) . ':' . $caller['line'] . ' ' . $caller['function'];
mailhandler_watchdog_record('Deprecated call from: @call', array(
'@call' => $call,
), WATCHDOG_WARNING);
}