aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/Hooks.md155
-rw-r--r--include/auth.php3
-rw-r--r--mod/display.php2
3 files changed, 158 insertions, 2 deletions
diff --git a/doc/Hooks.md b/doc/Hooks.md
new file mode 100644
index 000000000..a02bc631d
--- /dev/null
+++ b/doc/Hooks.md
@@ -0,0 +1,155 @@
+Hooks - Complete List
+=====================
+
+
+* 'about_hook'
+* 'account_settings'
+* 'app_menu'
+* 'atom_author'
+* 'atom_entry'
+* 'atom_feed'
+* 'atom_feed_end'
+* 'authenticate'
+* 'avatar_lookup'
+* 'bb2diaspora'
+* 'bbcode'
+* 'channel_remove'
+* 'check_account_email'
+* 'check_account_invite'
+* 'check_account_password'
+* 'connect_premium'
+* 'connector_settings'
+* 'contact_block_end'
+* 'contact_edit'
+* 'contact_edit_post'
+* 'contact_photo_menu'
+* 'contact_select_options'
+* 'conversation_start'
+* 'cron'
+* 'directory_item'
+* 'display_item'
+* 'display_item'
+* 'display_settings'
+* 'display_settings_post'
+* 'enotify'
+* 'enotify_mail'
+* 'enotify_store'
+* 'event_created'
+* 'event_updated'
+* 'feature_enabled'
+* 'feature_settings'
+* 'feature_settings_post'
+* 'follow'
+* 'gender_selector'
+* 'get_all_perms'
+* 'get_features'
+* 'get_widgets'
+* 'get_widgets'
+* 'global_permissions'
+* 'home_content'
+* 'home_init'
+* 'html2bbcode'
+* 'import_directory_profile'
+* 'init_1');
+* 'item_photo_menu'
+* 'item_translate'
+* 'item_translate'
+* 'jot_networks'
+* 'jot_networks'
+* 'jot_networks'
+* 'jot_networks'
+* 'jot_networks'
+* 'jot_tool'
+* 'jot_tool'
+* 'jot_tool'
+* 'jot_tool'
+* 'jot_tool'
+* 'logged_in'
+* 'logged_in'
+* 'logged_in'
+* 'login_hook'
+* 'logging_out'
+* 'magic_auth'
+* 'magic_auth_success'
+* 'main_slider'
+* 'marital_selector'
+* 'mood_verbs'
+* 'network_content_init'
+* 'network_ping'
+* 'network_tabs'
+* 'network_to_name'
+* 'notifier_end'
+* 'notifier_normal'
+* 'obj_verbs'
+* 'oembed_probe'
+* 'page_content_top'
+* 'page_end'
+* 'page_header'
+* 'parse_atom'
+* 'parse_link'
+* 'pdl_selector'
+* 'perm_is_allowed'
+* 'personal_xrd'
+* 'photo_post_end'
+* 'photo_post_end'
+* 'photo_upload_begin'
+* 'photo_upload_end'
+* 'photo_upload_end'
+* 'photo_upload_end'
+* 'photo_upload_end'
+* 'photo_upload_file'
+* 'photo_upload_form'
+* 'poke_verbs'
+* 'post_local'
+* 'post_local'
+* 'post_local_end'
+* 'post_local_end'
+* 'post_local_end'
+* 'post_local_end'
+* 'post_local_end'
+* 'post_local_start'
+* 'post_mail'
+* 'post_mail_end'
+* 'post_remote'
+* 'post_remote_end'
+* 'post_remote_update'
+* 'post_remote_update_end'
+* 'prepare_body'
+* 'prepare_body_final'
+* 'prepare_body_init'
+* 'proc_run'
+* 'profile_advanced'
+* 'profile_edit'
+* 'profile_post'
+* 'profile_sidebar'
+* 'profile_sidebar_enter'
+* 'profile_tabs'
+* 'register_account'
+* 'render_location'
+* 'settings_account'
+* 'settings_form'
+* 'settings_post'
+* 'sexpref_selector'
+* 'smilie'
+* 'validate_channelname'
+* 'webfinger'
+* 'zid'
+* 'zid_init'
+
+***General Module Hooks***
+
+* $a->module . '_mod_aftercontent'
+* $a->module . '_mod_aside'
+* $a->module . '_mod_content'
+* $a->module . '_mod_init'
+* $a->module . '_mod_post'
+
+***General Selector Hooks***
+
+* $a->module . '_post_' . $selname
+* $a->module . '_post_' . $selname
+* $a->module . '_post_' . $selname
+* $a->module . '_pre_' . $selname
+* $a->module . '_pre_' . $selname
+* $a->module . '_pre_' . $selname
+
diff --git a/include/auth.php b/include/auth.php
index d04ebbe43..8eb8bf333 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -61,7 +61,8 @@ if((isset($_SESSION)) && (x($_SESSION,'authenticated')) && ((! (x($_POST,'auth-p
if(((x($_POST,'auth-params')) && ($_POST['auth-params'] === 'logout')) || ($a->module === 'logout')) {
// process logout request
- call_hooks("logging_out");
+ $args = array('channel_id' => local_user());
+ call_hooks('logging_out', $args);
nuke_session();
info( t('Logged out.') . EOL);
goaway(z_root());
diff --git a/mod/display.php b/mod/display.php
index 99cbd6f0e..d91d14d01 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -51,7 +51,7 @@ function display_content(&$a, $update = 0, $load = false) {
'bang' => '',
'visitor' => 'block',
'profile_uid' => local_user(),
- 'return_path' => '/channel/' . $channel['channel_address']
+ 'return_path' => 'channel/' . $channel['channel_address']
);
$o .= status_editor($a,$x);