You are here

function _pathauto_include in Pathauto 6.2

Same name and namespace in other branches
  1. 5.2 pathauto.module \_pathauto_include()
  2. 6 pathauto.module \_pathauto_include()

Deprecated. Use module_load_include('inc', 'pathauto') instead.

File

./pathauto.module, line 105
Main file for the Pathauto module, which automatically generates aliases for content.

Code

function _pathauto_include() {
  module_load_include('inc', 'pathauto');

  // Trigger a watchdog notice about whatever file/function is improperly
  // calling this deprecated function.
  $backtrace = debug_backtrace();
  watchdog('pathauto', "The !deprecated function has been deprecated and !replacement should be used instead. It was called from %file on line %line, function %function().", array(
    '!deprecated' => __FUNCTION__,
    '!replacement' => "module_load_include('inc', 'pathauto')",
    '%file' => basename($backtrace[0]['file']),
    '%line' => $backtrace[0]['line'],
    '%function' => $backtrace[1]['function'],
  ), WATCHDOG_NOTICE);
}