From 55eddd7accf2c5f9b0f52b22a010c4c4b7c130d1 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Fri, 6 Feb 2009 19:18:00 -0600 Subject: mv packages to config dir to match web layout --- config/cg2/sample/sample.inc | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 config/cg2/sample/sample.inc (limited to 'config/cg2/sample/sample.inc') diff --git a/config/cg2/sample/sample.inc b/config/cg2/sample/sample.inc new file mode 100644 index 00000000..62ec59ab --- /dev/null +++ b/config/cg2/sample/sample.inc @@ -0,0 +1,37 @@ +value='This example shows how to change the text inside a text box from within the include file, when the form is loaded.'; +} + +function sample_on_sync_event() +{ + /* This is called when the form is posted. You generally want to sync the + * configurations in the XML file to settings in files spread across the file + * system or maybe restart a service here. */ + //var_dump('BEING SYNCED'); +} + +function sample_on_apply_event() +{ + /* This is called when a configuration has been changed and the user is + * prompted to apply the changes and clicks "Apply changes". */ + var_dump('BEING APPLIED'); +} + +function sample_on_submit_event() +{ + /* This allows you to perform an action when an specific submit button is + * clicked. This should only be used when you have more than one submit + * button in the same form. Otherwise, performs better and + * is cleaner. */ + //var_dump('BEING SUBMITTED'); +} +?> -- cgit v1.2.3