diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-21 10:19:48 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-21 10:19:48 +0000 |
commit | 8ae92e78ef286402ed552061d76f8bb4abbd4732 (patch) | |
tree | 03859d862c121351d134e397c6e38497707d20bf /includes | |
parent | 6539970db4123c1202538aa6149bf9a9e94efe66 (diff) | |
download | brdo-8ae92e78ef286402ed552061d76f8bb4abbd4732.tar.gz brdo-8ae92e78ef286402ed552061d76f8bb4abbd4732.tar.bz2 |
#828648 by oadaeh, David_Rothstein: Fixed module_load_install should check and return results
Diffstat (limited to 'includes')
-rw-r--r-- | includes/module.inc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/includes/module.inc b/includes/module.inc index 403b4ea6f..a65a4326b 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -247,12 +247,18 @@ function module_exists($module) { /** * Load a module's installation hooks. + * + * @param $module + * The name of the module (without the .module extension). + * + * @return + * The name of the module's install file, if successful; FALSE otherwise. */ function module_load_install($module) { // Make sure the installation API is available include_once DRUPAL_ROOT . '/includes/install.inc'; - module_load_include('install', $module); + return module_load_include('install', $module); } /** @@ -278,6 +284,9 @@ function module_load_install($module) { * @param $name * Optionally, specify the base file name (without the $type extension). * If not set, $module is used. + * + * @return + * The name of the included file, if successful; FALSE otherwise. */ function module_load_include($type, $module, $name = NULL) { if (empty($name)) { |