original_string: 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];
      }
code: 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];
      }
code_tokens: 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 ] ; }
docstring: 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
docstring_tokens: This method simply checks to see if a given module can extend the navigation .