original_string: public static function get_supported_activities() {
          $availabletypes = get_module_types_names();
          foreach ($availabletypes as $module => $name) {
              if (plugin_supports('mod', $module, FEATURE_NO_VIEW_LINK, false)) {
                  unset($availabletypes[$module]);
              }
          }
          return $availabletypes;
      }
code: public static function get_supported_activities() {
          $availabletypes = get_module_types_names();
          foreach ($availabletypes as $module => $name) {
              if (plugin_supports('mod', $module, FEATURE_NO_VIEW_LINK, false)) {
                  unset($availabletypes[$module]);
              }
          }
          return $availabletypes;
      }
code_tokens: public static function get_supported_activities ( ) { $ availabletypes = get_module_types_names ( ) ; foreach ( $ availabletypes as $ module => $ name ) { if ( plugin_supports ( 'mod' , $ module , FEATURE_NO_VIEW_LINK , false ) ) { unset ( $ availabletypes [ $ module ] ) ; } } return $ availabletypes ; }
docstring: Get the activities supported by the format.
  
  Here we ignore the modules that do not have a page of their own, like the label.
  
  @return array array($module => $name of the module).
docstring_tokens: Get the activities supported by the format .