We should use

http://api.drupal.org/api/drupal/includes!module.inc/function/module_loa...

instead of stuff like:

include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'bueditor') . '/bueditor.inc';

Comments

ufku’s picture

Status: Active » Closed (won't fix)

From Drupal API:module_load_include

Do not use this function in a global context since it requires Drupal to be fully bootstrapped, use require_once DRUPAL_ROOT . '/path/file' instead.