* the return value is ignored
*/
public static function themes(&$themes) {
- return self::singleton()->invoke(1, $themes,
+ return self::singleton()->invoke(['themes'], $themes,
self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
'civicrm_themes'
);
* installation of unrelated modules).
*/
public static function install() {
- return self::singleton()->invoke(0, self::$_nullObject,
- self::$_nullObject, self::$_nullObject,
- self::$_nullObject, self::$_nullObject, self::$_nullObject,
- 'civicrm_install'
- );
+ // Actually invoke via CRM_Extension_Manager_Module::callHook
+ throw new \RuntimeException(sprintf("The method %s::%s is just a documentation stub and should not be invoked directly.", __CLASS__, __FUNCTION__));
}
/**
* uninstallation of unrelated modules).
*/
public static function uninstall() {
- return self::singleton()->invoke(0, self::$_nullObject,
- self::$_nullObject, self::$_nullObject,
- self::$_nullObject, self::$_nullObject, self::$_nullObject,
- 'civicrm_uninstall'
- );
+ // Actually invoke via CRM_Extension_Manager_Module::callHook
+ throw new \RuntimeException(sprintf("The method %s::%s is just a documentation stub and should not be invoked directly.", __CLASS__, __FUNCTION__));
}
/**
* re-enablement of unrelated modules).
*/
public static function enable() {
- return self::singleton()->invoke(0, self::$_nullObject,
- self::$_nullObject, self::$_nullObject,
- self::$_nullObject, self::$_nullObject, self::$_nullObject,
- 'civicrm_enable'
- );
+ // Actually invoke via CRM_Extension_Manager_Module::callHook
+ throw new \RuntimeException(sprintf("The method %s::%s is just a documentation stub and should not be invoked directly.", __CLASS__, __FUNCTION__));
}
/**
* disablement of unrelated modules).
*/
public static function disable() {
- return self::singleton()->invoke(0, self::$_nullObject,
- self::$_nullObject, self::$_nullObject,
- self::$_nullObject, self::$_nullObject, self::$_nullObject,
- 'civicrm_disable'
- );
+ // Actually invoke via CRM_Extension_Manager_Module::callHook
+ throw new \RuntimeException(sprintf("The method %s::%s is just a documentation stub and should not be invoked directly.", __CLASS__, __FUNCTION__));
}
/**