function menu_get_module_path
Search API
7.x menu.inc | menu_get_module_path($module, $bool_include_file_system_path = FALSE) |
6.x menu.inc | menu_get_module_path($module, $bool_include_file_system_path = FALSE) |
4.x menu.inc | menu_get_module_path($module, $bool_include_file_system_path = FALSE) |
5.x menu.inc | menu_get_module_path($module, $bool_include_file_system_path = FALSE) |
5 calls to menu_get_module_path()
- admin_menu in modules/
admin/ admin.module - Implementation of hook_menu
- advise_menu in modules/
advise/ advise.module - course_search_menu in modules/
course_search/ course_search.module - fp_get_module_path in includes/
misc.inc - Return the filepath to the module
- hook_menu in includes/
hook.api.php - Allows modules to specify valid URLs in FlightPath, and define what function to call when the user visits that URL.
File
- includes/
menu.inc, line 67
Code
function menu_get_module_path($module, $bool_include_file_system_path = FALSE) {
$system_path = "";
if ($bool_include_file_system_path) {
$system_path = $GLOBALS ["fp_system_settings"]["file_system_path"] . "/";
}
if (isset($GLOBALS ["fp_system_settings"]["modules"][$module]["path"])) {
return $system_path . $GLOBALS ["fp_system_settings"]["modules"][$module]["path"];
}
else {
return FALSE;
}
}