link = $host->get_link(); $this->host = $host; $host->add_hook($host::HOOK_PREFS_TAB, $this); } function save() { $example_value = db_escape_string($_POST["example_value"]); echo "Value set to $example_value (not really)"; } function get_prefs_js() { return file_get_contents(dirname(__FILE__) . "/example.js"); } function hook_prefs_tab($args) { if ($args != "prefPrefs") return; print "
"; print "
"; print ""; print ""; print ""; print ""; print ""; print ""; print ""; print "
".__("Sample value")."
"; print "

"; print "

"; print "
"; #pane } } ?>