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;
    }
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;
    }
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 ; }
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).
Get the activities supported by the format .