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 "