mirror of
https://github.com/tips-of-mine/GLPI-Plugin-SOC-Case-Management.git
synced 2025-06-28 13:48:42 +02:00
Merge pull request #3 from tips-of-mine/fix/plugin-registration-warning
Feat: Add plugin activation and deactivation functions
This commit is contained in:
22
setup.php
22
setup.php
@ -76,7 +76,7 @@ function plugin_init_soc() {
|
|||||||
|
|
||||||
// Register plugin classes
|
// Register plugin classes
|
||||||
Plugin::registerClass('PluginSocCase');
|
Plugin::registerClass('PluginSocCase');
|
||||||
Plugin::registerClass('PluginSocProfile');
|
Plugin::registerClass('PluginSocProfile', ['classname' => 'PluginSocProfile']);
|
||||||
|
|
||||||
// Add menu items
|
// Add menu items
|
||||||
if (Session::haveRight('plugin_soc_case', READ)) {
|
if (Session::haveRight('plugin_soc_case', READ)) {
|
||||||
@ -211,3 +211,23 @@ function plugin_soc_uninstall() {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin activation function
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
function plugin_enable_soc() {
|
||||||
|
// Add any specific activation logic here if needed in the future
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin deactivation function
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
function plugin_disable_soc() {
|
||||||
|
// Add any specific deactivation logic here if needed in the future
|
||||||
|
return true;
|
||||||
|
}
|
Reference in New Issue
Block a user