diff --git a/include/class_msgPool.inc b/include/class_msgPool.inc index 09035082953fec0a12a12fa3c423c8654fe0633b..7c621b3a6177feff189ff6882085b43e48d3ab1a 100644 --- a/include/class_msgPool.inc +++ b/include/class_msgPool.inc @@ -293,7 +293,7 @@ class msgPool */ public static function cmdnotfound ($type, $plugin) { - return sprintf(_("Command specified as %s hook for plugin '%s' does not exist!"), $type, $plugin); + return sprintf(_('Command specified as %s trigger for plugin "%s" does not exist!'), $type, $plugin); } /*! diff --git a/include/simpleplugin/class_simplePlugin.inc b/include/simpleplugin/class_simplePlugin.inc index 3adb17807a221447e2d24a2a4eabfa0a62ff9cd7..fae13eebd3e9284f9c164a9d84215fbbbd567e0d 100644 --- a/include/simpleplugin/class_simplePlugin.inc +++ b/include/simpleplugin/class_simplePlugin.inc @@ -1535,7 +1535,7 @@ class simplePlugin implements SimpleTab $str = implode("\n", $arr); @DEBUG(DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Result: ".$str); if (!empty($str) && $config->get_cfg_value("displayHookOutput", "FALSE") == "TRUE") { - msg_dialog::display('['.get_class($this).' '.strtolower($cmd)."hook] $command", $str, INFO_DIALOG); + msg_dialog::display('['.get_class($this).' '.strtolower($cmd).'trigger] '.$command, $str, INFO_DIALOG); } } } diff --git a/plugins/admin/departments/class_department.inc b/plugins/admin/departments/class_department.inc index e20aaf853b2885a0108d50547dd9929d64332138..1fe769aa5f68adf6830e26545c4fc35ec510d0bc 100644 --- a/plugins/admin/departments/class_department.inc +++ b/plugins/admin/departments/class_department.inc @@ -162,7 +162,6 @@ class department extends simplePlugin /* Check values */ function check (): array { - /* Call common method to give check the hook */ $message = parent::check(); $namingAttr = static::$namingAttr; diff --git a/plugins/config/class_hooksConfig.inc b/plugins/config/class_hooksConfig.inc index f26934968c14688aaf3fe2730860e9deab3f5fd9..38e2c60d98d550fde75d06e5e7d8133aedd1b3c8 100644 --- a/plugins/config/class_hooksConfig.inc +++ b/plugins/config/class_hooksConfig.inc @@ -24,8 +24,8 @@ class hooksConfig extends simplePlugin static function plInfo (): array { return [ - 'plShortName' => _('Hooks'), - 'plTitle' => _('Hooks configuration'), + 'plShortName' => _('Triggers'), + 'plTitle' => _('Triggers configuration'), 'plPriority' => 1, 'plObjectType' => ['configuration'], @@ -44,41 +44,41 @@ class hooksConfig extends simplePlugin sort($plugins); return [ - 'hooks' => [ - 'name' => _('Hooks'), + 'triggers' => [ + 'name' => _('Triggers'), 'class' => ['fullwidth'], 'attrs' => [ new BooleanAttribute( - _('Display hook output'), - _('When enabled successful hook execution output is displayed to the user using a dialog.'), + _('Display trigger output'), + _('When enabled successful trigger execution output is displayed to the user using a dialog.'), 'fdDisplayHookOutput' ), new OrderedArrayAttribute( new CompositeAttribute( - _('Hooks that are called when specific actions happens'), + _('Triggers that are called when specific actions happens'), 'fdTabHook', [ new SelectAttribute( - _('Tab'), _('The tab that this hook concerns'), - 'hookTab', TRUE, + _('Tab'), _('The tab that this trigger concerns'), + 'triggerTab', TRUE, $plugins ), new SelectAttribute( _('Mode'), _('When to call this command'), - 'hookMode', TRUE, + 'triggerMode', TRUE, ['postcreate', 'postremove', 'postmodify', 'precreate', 'preremove', 'premodify', 'check', 'prelock', 'postlock', 'preunlock', 'postunlock'] ), new TextAreaAttribute( _('Command'), _('The command that will be called'), - 'hookCmd', TRUE + 'triggerCmd', TRUE ) ], '/^([^\\|]+)\\|([^\\|]+)\\|(.*)$/', '%s|%s|%s', '', // acl - _('Hooks') + _('Triggers') ), FALSE, // non-ordered [], diff --git a/plugins/config/class_mainPluginsConfig.inc b/plugins/config/class_mainPluginsConfig.inc index 351ab7cce2387f0923e9fa12b1b0555a9f5df08c..f55a85ec925f2615e84d6d187be8f6d54c828061 100644 --- a/plugins/config/class_mainPluginsConfig.inc +++ b/plugins/config/class_mainPluginsConfig.inc @@ -51,7 +51,7 @@ class mainPluginsConfig extends simplePlugin 'name' => _('SASL'), 'attrs' => [ new BooleanAttribute( - _('Force to ask for password'), _('Useful if you add a hook using password value when SASL user passwords are edited'), + _('Force to ask for password'), _('Useful if you add a trigger using password value when SASL user passwords are edited'), 'fdForceSaslPasswordAsk', TRUE, FALSE ),