Index: vars.php
===================================================================
--- vars.php	(revision 2779)
+++ vars.php	(working copy)
@@ -110,4 +110,197 @@
 define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) );
 define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('siteurl') . '/' ) );
 
+
+// WordPress Hook Listing
+// Hook listing and function by Mark Jaquith
+
+$wp_hooks = array(
+'404_template',
+'admin_footer',
+'admin_head',
+'admin_menu',
+'all_options',
+'archive_template',
+'author_email',
+'author_feed_link',
+'author_link',
+'author_rewrite_rules',
+'author_template',
+'bloginfo',
+'category_description',
+'category_feed_link',
+'category_link',
+'category_rewrite_rules',
+'category_save_pre',
+'category_template',
+'check_admin_referer',
+'check_passwords',
+'comment_author',
+'comment_author_rss',
+'comment_closed',
+'comment_content_presave',
+'comment_email',
+'comment_excerpt',
+'comment_flood_trigger',
+'comment_form',
+'comment_id_not_found',
+'comment_on_draft',
+'comment_post',
+'comment_text',
+'comment_text_rss',
+'comment_url',
+'comments_number',
+'comments_popup_template',
+'comments_rewrite_rules',
+'comments_template',
+'content_edit_pre',
+'content_save_pre',
+'core_files_loaded',
+'date_rewrite_rules',
+'date_template',
+'day_link',
+'default_content',
+'default_excerpt',
+'default_title',
+'delete_comment',
+'delete_post',
+'edit_comment',
+'edit_form_advanced',
+'edit_page_form',
+'edit_post',
+'excerpt_edit_pre',
+'excerpt_save_pre',
+'feed_link',
+'format_to_edit',
+'format_to_post',
+'generate_rewrite_rules',
+'get_comment_ID',
+'get_comment_author',
+'get_comment_author_IP',
+'get_comment_author_email',
+'get_comment_author_link',
+'get_comment_author_url',
+'get_comment_author_url_link',
+'get_comment_date',
+'get_comment_excerpt',
+'get_comment_text',
+'get_comment_time',
+'get_comment_type',
+'get_comments_number',
+'get_the_excerpt',
+'get_the_guid',
+'get_the_time',
+'home_template',
+'init',
+'link_rating',
+'list_cats',
+'locale',
+'loginout',
+'lost_password',
+'manage_posts_columns',
+'manage_posts_custom_column',
+'mod_rewrite_rules',
+'month_link',
+'name_save_pre',
+'page_link',
+'page_rewrite_rules',
+'page_template',
+'paged_template',
+'parse_query',
+'password_reset',
+'phone_content',
+'pingback_post',
+'plugins_loaded',
+'post_comment_text',
+'post_comments_feed_link',
+'post_link',
+'post_rewrite_rules',
+'posts_join',
+'posts_join_paged',
+'posts_orderby',
+'posts_where',
+'posts_where_paged',
+'pre_comment_approved',
+'pre_comment_author_email',
+'pre_comment_author_name',
+'pre_comment_author_url',
+'pre_comment_content',
+'pre_comment_user_agent',
+'pre_comment_user_domain',
+'pre_comment_user_ip',
+'pre_user_id',
+'preprocess_comment',
+'private_to_published',
+'publish_phone',
+'publish_post',
+'query_string',
+'query_vars',
+'register',
+'retreive_password',
+'retrieve_password',
+'rewrite_rules',
+'rewrite_rules_array',
+'root_rewrite_rules',
+'sanitize_title',
+'save_post',
+'search_rewrite_rules',
+'search_template',
+'show_password_fields',
+'shutdown',
+'simple_edit_form',
+'single_post_title',
+'single_template',
+'stylesheet',
+'stylesheet_directory',
+'stylesheet_directory_uri',
+'stylesheet_uri',
+'switch_theme',
+'template',
+'template_directory',
+'template_directory_uri',
+'template_redirect',
+'the_author_email',
+'the_category',
+'the_category_rss',
+'the_content',
+'the_date',
+'the_excerpt',
+'the_excerpt_rss',
+'the_permalink',
+'the_posts',
+'the_time',
+'the_title',
+'the_title_rss',
+'the_weekday',
+'the_weekday_date',
+'theme_root',
+'theme_root_uri',
+'title_edit_pre',
+'title_save_pre',
+'trackback_post',
+'user_register',
+'wp_authenticate',
+'wp_blacklist_check',
+'wp_footer',
+'wp_head',
+'wp_list_pages',
+'wp_login',
+'wp_logout',
+'wp_meta',
+'wp_set_comment_status',
+'xmlrpc_methods',
+'year_link'
+);
+
+// now add a dynamic hook for each autoloaded option
+foreach ($cache_settings as $setting) {
+$wp_hooks[] = 'option_' . $setting;
+$wp_hooks[] = 'pre_option_' . $setting;
+}
+
+function hook_exists ($hook_name) {
+	global $wp_hooks;
+	return @in_array($hook_name, $wp_hooks);
+}
+
 ?>
\ No newline at end of file
