$priority is an integer. Modules are sorted by priority and name.
Lowest priority comes first. This property is currently ignored when dealing
with themes.
@param name string Module name
@param desc string Module description
@param author string Module author name
@param version string Module version
@param properties array extra properties (currently available keys : permissions, priority, standalone_config, type)
*/
public function registerModule($name,$desc,$author,$version,$properties = array())
{
# Fallback to legacy registerModule parameters
if (!is_array($properties)) {
$args = func_get_args();
$properties = array();
if (isset($args[4])) {
$properties['permissions']=$args[4];
}
if (isset($args[5])) {
$properties['priority']= (integer)$args[5];
}
}
parent::registerModule($name, $desc, $author, $version, $properties);
}
}