public static function module_extends_navigation($modname) {
        global $CFG;
        static $extendingmodules = array();
        if (!array_key_exists($modname, $extendingmodules)) {
            $extendingmodules[$modname] = false;
            $file = $CFG->dirroot.'/mod/'.$modname.'/lib.php';
            if (file_exists($file)) {
                $function = $modname.'_extend_navigation';
                require_once($file);
                $extendingmodules[$modname] = (function_exists($function));
            }
        }
        return $extendingmodules[$modname];
    }
public static function module_extends_navigation($modname) {
        global $CFG;
        static $extendingmodules = array();
        if (!array_key_exists($modname, $extendingmodules)) {
            $extendingmodules[$modname] = false;
            $file = $CFG->dirroot.'/mod/'.$modname.'/lib.php';
            if (file_exists($file)) {
                $function = $modname.'_extend_navigation';
                require_once($file);
                $extendingmodules[$modname] = (function_exists($function));
            }
        }
        return $extendingmodules[$modname];
    }
public static function module_extends_navigation ( $ modname ) { global $ CFG ; static $ extendingmodules = array ( ) ; if ( ! array_key_exists ( $ modname , $ extendingmodules ) ) { $ extendingmodules [ $ modname ] = false ; $ file = $ CFG -> dirroot . '/mod/' . $ modname . '/lib.php' ; if ( file_exists ( $ file ) ) { $ function = $ modname . '_extend_navigation' ; require_once ( $ file ) ; $ extendingmodules [ $ modname ] = ( function_exists ( $ function ) ) ; } } return $ extendingmodules [ $ modname ] ; }
This method simply checks to see if a given module can extend the navigation.

@todo (MDL-25290) A shared caching solution should be used to save details on what extends navigation.

@param string $modname
@return bool
This method simply checks to see if a given module can extend the navigation .