How to load an include file from Drupal's include folder? I am experiencing a problem with the GlobalRedirect module in that it seems like it is not loading the locale.inc which it relies upon. I tried using the module_load_include function but did not work as locale.inc isn't apart of a module. 

I know I can use:

include(DRUPAL_ROOT."/includes/locale.inc");


Is there a Drupal specific function call to load include files for Drupal? I am curious if there is.

Thanks
require_once DRUPAL_ROOT . '/includes/actions.inc';


is the correct way.

Using 'content' just worked, because there is no module named content and just did work due to a side-effect. It also caused silent performance problems on Drupal versions &lt; 7.50.

There is no Drupal specific function to load a core include file, and this is how it is done in includes/common.inc line 5242.


Fabianx, Drupal 7 core branch maintainer and core committer