From cbb341343394c727ffb941502548106d1d893c28 Mon Sep 17 00:00:00 2001 From: moyooo Date: Sat, 29 Mar 2008 10:19:11 +0000 Subject: [PATCH] User prefs on example git-svn-id: https://forge.glpi-project.org/svn/example/trunk@40 349b9182-4a13-0410-896f-e5e9767dd1b3 --- setup.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/setup.php b/setup.php index 7309c46..43f08e5 100755 --- a/setup.php +++ b/setup.php @@ -95,6 +95,9 @@ function plugin_init_example() { //function to populate planning $PLUGIN_HOOKS['display_planning']['example']="plugin_display_planning_example"; + //function to populate planning + $PLUGIN_HOOKS['user_preferences']['example']="plugin_user_preferences_example"; + // Massive Action definition $PLUGIN_HOOKS['use_massive_action']['example']=1; @@ -638,5 +641,26 @@ function cron_plugin_example(){ echo "tttt"; } +// Show user preferences +function plugin_user_preferences_example($parm){ + // Complete form display + + $data=plugin_version_example(); + + echo "
"; + echo ""; + echo ""; + + echo ""; + + echo ""; + echo ""; + + echo "
".$data['name']; + echo " - ".$data['version']; + echo "
Name of the pref"; + echo "Input to set the pref
"; + echo "
"; +} ?>