Skip to content
Snippets Groups Projects
Commit d9ab38b2 authored by Angie Byron's avatar Angie Byron
Browse files

#485350 by jhodgdon: Clarify documentation of module_load_include().

parent b300a7a5
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -138,13 +138,22 @@ function module_load_install($module) {
/**
* Load a module include file.
*
* Examples:
* @code
* // Load node.admin.inc from the node module
* module_load_include('inc', 'node', 'node.admin');
* // Load node.install from the node module
* module_load_include('install', 'node');
* @endcode
*
* @param $type
* The include file's type (file extension).
* @param $module
* The module to which the include file belongs.
* @param $name
* Optionally, specify the file name. If not set, the module's name is used.
* Optionally, specify the base file name (without the $type extension).
* If not set, $module is used.
*/
function module_load_include($type, $module, $name = NULL) {
if (empty($name)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment