From 2c967d60237c5890549b9c9fa680ee7adec10e6a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 7 May 2013 10:09:38 +0400 Subject: move example plugins to -contrib --- plugins/example/example.js | 3 -- plugins/example/init.php | 85 ---------------------------------------------- 2 files changed, 88 deletions(-) delete mode 100644 plugins/example/example.js delete mode 100644 plugins/example/init.php (limited to 'plugins/example') diff --git a/plugins/example/example.js b/plugins/example/example.js deleted file mode 100644 index a31f2c2a2..000000000 --- a/plugins/example/example.js +++ /dev/null @@ -1,3 +0,0 @@ -function example(value) { - alert("Value saved: " + value); -} diff --git a/plugins/example/init.php b/plugins/example/init.php deleted file mode 100644 index 67f502778..000000000 --- a/plugins/example/init.php +++ /dev/null @@ -1,85 +0,0 @@ -host = $host; - - $host->add_hook($host::HOOK_PREFS_TAB, $this); - } - - function save() { - $example_value = db_escape_string($_POST["example_value"]); - - $this->host->set($this, "example", $example_value); - - echo "Value set to $example_value"; - } - - function get_prefs_js() { - return file_get_contents(dirname(__FILE__) . "/example.js"); - } - - function hook_prefs_tab($args) { - if ($args != "prefPrefs") return; - - print "
"; - - print "
"; - -// print_r($this->host->set($this, "example", rand(0,100))); -// print_r($this->host->get_all($this)); - - $value = $this->host->get($this, "example"); - - print "
"; - - print ""; - - print ""; - print ""; - print ""; - - print ""; - - print ""; - print ""; - - print "
".__("Sample value")."
"; - - print "

"; - - print "

"; - - print "
"; #pane - } - - function api_version() { - return 2; - } - -} -?> -- cgit v1.2.3