mirror of
https://github.com/pluginsGLPI/example.git
synced 2026-03-24 06:57:23 +01:00
Move front-end assets to be compatible with GLPI 11.0
This commit is contained in:
@@ -177,8 +177,9 @@ function plugin_init_example() {
|
||||
$PLUGIN_HOOKS['assign_to_ticket']['example'] = 1;
|
||||
|
||||
// Add specific files to add to the header : javascript or css
|
||||
$PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['example'] = 'example.js';
|
||||
$PLUGIN_HOOKS[Hooks::ADD_CSS]['example'] = 'example.css';
|
||||
$PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['example'] = 'js/example.js';
|
||||
$PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT_MODULE]['example'] = 'js/modules/mymodule.js';
|
||||
$PLUGIN_HOOKS[Hooks::ADD_CSS]['example'] = 'css/example.css';
|
||||
|
||||
// Add specific tags to the header
|
||||
$PLUGIN_HOOKS[Hooks::ADD_HEADER_TAG]['example'] = [
|
||||
|
||||
Reference in New Issue
Block a user