options = get_option('spreadx_options'); } function spreadx_install(){ /** * Installs the plugin by creating the options * @param NULL * @return NULL */ $options = array(); $options["sites"] = array("digg", "stumble", "technorati", "facebook", "delicious"); $options["buttons"] = '
'; $options["scope"] = array("post"); update_option('spreadx_options', $options); } function spreadx_uninstall(){ /** * Uninstalls the plugin by deleting the options * * @param NULL * @return NULL */ delete_option('spreadx_options'); } function spreadx_admin_menu(){ /** * The hook for the admin menu * * @param NULL * @return NULL */ add_management_page('SpreadX', 'SpreadX', 6, __FILE__, array($this, 'spreadx_admin_page')); } function spreadx_admin_page(){ /** * The administration page for updating options * * @param NULL * @return NULL */ clearstatcache(); $scope = array(); $buttons = ''; $sites = array(); if ($_POST["action"] == "update"){ $message = "Websites Updated"; if ($_POST["sites"]){ $buttons = "