PDA

View Full Version : List of Plugin Hooks



Nick
06-28-2009, 12:55 PM
Update: I'm going to close this off. It's too much hassle for me to update because I make so many changes, and it's not really all that useful either. You're better off looking at the code in the place you need a hook, and if there isn't one, add it to the SVN or ask a developer to do it.

Here is a list of plugin hooks. Expect this to grow as Hotaru does.

NOTE: For Hotaru to be as flexible as possible, it's important that plugin developers include hooks within their plugins. To help other developers, please post your plugin hooks in this thread. Thanks!

Core Files

libs/Hotaru.php:
hotaru_header
admin_header_include (called from the admin theme header.php template)
header_include (called from the default theme header.php template)

libs/PluginFunctions.php:
install_plugin
upgrade_plugin

libs/UserBase.php:
userbase_default_permissions

libs/Admin.php:
admin_index

Nick
08-29-2009, 09:00 AM
Admin Default theme

index.php:
admin_theme_index_replace
admin_theme_index_header
admin_theme_index_main
admin_theme_index_sidebar
admin_theme_index_footer

header.php:
admin_header_include_raw
admin_announcement_first
admin_announcement_last
header_post_admin_title

navigation.php:
navigation_first
navigation
admin_navigation
navigation_users

main.php:
main_top
main
main_bottom

settings.php:
admin_settings_top
admin_settings_bottom

maintenance.php:
admin_maintenance_top
admin_maintenance_bottom

plugin_settings.php:
admin_sidebar_plugin_settings (when no plugin is selected)
admin_plugin_settings (only applies to the plugin being edited)

plugins.php:
plugins_top
plugins_guide_top
plugins_guide_bottom
plugins_bottom

sidebar.php:
admin_sidebar_top
admin_sidebar_plugin_settings
admin_sidebar
admin_sidebar_bottom

footer.php:
footer_top
footer
admin_footer
footer_bottom

Nick
08-29-2009, 09:01 AM
Default theme

index.php:
theme_index_replace
theme_index_header
theme_index_main
theme_index_sidebar
theme_index_footer

header.php:
header_include_raw
post_open_body
announcement_first
announcement_last
header_post_title

navigation.php:
navigation_first
navigation
navigation_users
navigation_last

main.php:
main_top
main
main_bottom

sidebar.php:
sidebar

footer.php:
footer_top
footer
footer_bottom
pre_close_body

Nick
08-29-2009, 09:05 AM
Categories Plugin

categories_settings.php:
categories_settings_get_values
categories_settings_form
categories_save_settings

Nick
08-29-2009, 09:07 AM
Comments Plugin

comments_settings.php:
comments_settings_get_values
comments_settings_form
comments_save_settings

comment_form.php:
comment_form_extras

show_comments.php:
show_comments_content
show_comments_avatar
show_comments_votes

Nick
08-29-2009, 09:09 AM
Disqus Plugin

disqus_settings.php:
disqus_settings_get_values
disqus_settings_form
disqus_save_settings

Nick
08-29-2009, 09:12 AM
Sidebar Widgets Plugin

sidebar_widgets.php:
sidebar_install_plugin

sidebar_ordering.php:
sidebar_ordering_guide_top
sidebar_ordering_guide_bottom

Nick
08-29-2009, 09:20 AM
Submit Plugin

Post.php:
post_read_post_1
post_read_post_2
post_add_post
post_update_post
post_delete_post
post_rss_feed
post_list_filter

submit.php:
submit_hotaru_header_1
submit_hotaru_header_2
submit_is_page_main
submit_is_page_latest
submit_is_page_all
submit_form_2_check_for_errors
submit_form_2_process_submission

submit_settings.php:
submit_settings_get_values
submit_settings_form
submit_save_settings

list.php:
breadcrumbs
submit_post_breadcrumbs
submit_pre_show_post
submit_show_post_pre_title
submit_show_post_title
submit_show_post_author_date
submit_show_post_extra_fields
submit_show_post_extras

post.php:
breadcrumbs
submit_post_breadcrumbs
submit_pre_show_post
submit_show_post_pre_title
submit_show_post_title
submit_show_post_author_date
submit_show_post_extra_fields
submit_show_post_extras
submit_show_post_middle
submit_post_show_post

submit_edit_post.php:
submit_form_2_assign
submit_form_2_fields

submit_step2.php:
submit_form_2_assign
submit_form_2_fields

Nick
08-29-2009, 09:21 AM
Users Plugin

users_settings.php:
users_settings_get_values
users_settings_form
users_save_settings

Nick
08-29-2009, 09:23 AM
Vote Simple Plugin

vote_settings.php:
vote_settings_get_values
vote_settings_form_1
vote_settings_form_2
vote_save_settings