MDL-43293 Events: Added comments event in modules supporting comments

This commit is contained in:
Rajesh Taneja
2013-12-23 09:22:14 +08:00
parent edd9bb451c
commit a55eaf0351
18 changed files with 550 additions and 9 deletions
+10
View File
@@ -1013,4 +1013,14 @@ $cache = '.var_export($cache, true).';
opcache_invalidate($file, true);
}
}
/**
* Return true if subsystemname is core subsystem.
*
* @param string $subsystemname name of the subsystem.
* @return bool true if core subsystem.
*/
public static function is_core_subsystem($subsystemname) {
return isset(self::$subsystems[$subsystemname]);
}
}