@ -27,7 +27,7 @@ Plugins should contain a comment block with the four following parameters:
Register your plugin hooks during installation.
register_h ook($hookname, $file, $function);
Addon::registerH ook($hookname, $file, $function);
$hookname is a string and corresponds to a known Friendica hook.
@ -296,182 +296,182 @@ Complete list of hook callbacks
Here is a complete list of all hook callbacks with file locations (as of 14-Feb-2012). Please see the source for details of any hooks not documented above.
boot.php: call_h ooks('login_hook',$o);
boot.php: Addon::callH ooks('login_hook',$o);
boot.php: call_h ooks('profile_sidebar_enter', $profile);
boot.php: Addon::callH ooks('profile_sidebar_enter', $profile);
boot.php: call_h ooks('profile_sidebar', $arr);
boot.php: Addon::callH ooks('profile_sidebar', $arr);
boot.php: call_h ooks("proc_run", $arr);
boot.php: Addon::callH ooks("proc_run", $arr);
include/contact_selectors.php: call_h ooks('network_to_name', $nets);
include/contact_selectors.php: Addon::callH ooks('network_to_name', $nets);
include/api.php: call_h ooks('logged_in', $a->user);
include/api.php: Addon::callH ooks('logged_in', $a->user);
include/api.php: call_h ooks('logged_in', $a->user);
include/api.php: Addon::callH ooks('logged_in', $a->user);
include/queue.php: call_h ooks('queue_predeliver', $a, $r);
include/queue.php: Addon::callH ooks('queue_predeliver', $a, $r);
include/queue.php: call_h ooks('queue_deliver', $a, $params);
include/queue.php: Addon::callH ooks('queue_deliver', $a, $params);
include/text.php: call_h ooks('contact_block_end', $arr);
include/text.php: Addon::callH ooks('contact_block_end', $arr);
include/text.php: call_h ooks('smilie', $s);
include/text.php: Addon::callH ooks('smilie', $s);
include/text.php: call_h ooks('prepare_body_init', $item);
include/text.php: Addon::callH ooks('prepare_body_init', $item);
include/text.php: call_h ooks('prepare_body', $prep_arr);
include/text.php: Addon::callH ooks('prepare_body', $prep_arr);
include/text.php: call_h ooks('prepare_body_final', $prep_arr);
include/text.php: Addon::callH ooks('prepare_body_final', $prep_arr);
include/nav.php: call_h ooks('page_header', $a->page['nav']);
include/nav.php: Addon::callH ooks('page_header', $a->page['nav']);
include/auth.php: call_h ooks('authenticate', $addon_auth);
include/auth.php: Addon::callH ooks('authenticate', $addon_auth);
include/bbcode.php: call_h ooks('bbcode',$Text);
include/bbcode.php: Addon::callH ooks('bbcode',$Text);
include/oauth.php: call_h ooks('logged_in', $a->user);
include/oauth.php: Addon::callH ooks('logged_in', $a->user);
include/acl_selectors.php: call_h ooks($a->module . '_pre_' . $selname, $arr);
include/acl_selectors.php: Addon::callH ooks($a->module . '_pre_' . $selname, $arr);
include/acl_selectors.php: call_h ooks($a->module . '_post_' . $selname, $o);
include/acl_selectors.php: Addon::callH ooks($a->module . '_post_' . $selname, $o);
include/acl_selectors.php: call_h ooks('contact_select_options', $x);
include/acl_selectors.php: Addon::callH ooks('contact_select_options', $x);
include/acl_selectors.php: call_h ooks($a->module . '_pre_' . $selname, $arr);
include/acl_selectors.php: Addon::callH ooks($a->module . '_pre_' . $selname, $arr);
include/acl_selectors.php: call_h ooks($a->module . '_post_' . $selname, $o);
include/acl_selectors.php: Addon::callH ooks($a->module . '_post_' . $selname, $o);
include/acl_selectors.php: call_h ooks($a->module . '_pre_' . $selname, $arr);
include/acl_selectors.php: Addon::callH ooks($a->module . '_pre_' . $selname, $arr);
include/acl_selectors.php: call_h ooks($a->module . '_post_' . $selname, $o);
include/acl_selectors.php: Addon::callH ooks($a->module . '_post_' . $selname, $o);
include/acl_selectors.php call_h ooks('acl_lookup_end', $results);
include/acl_selectors.php Addon::callH ooks('acl_lookup_end', $results);
include/notifier.php: call_h ooks('notifier_normal',$target_item);
include/notifier.php: Addon::callH ooks('notifier_normal',$target_item);
include/notifier.php: call_h ooks('notifier_end',$target_item);
include/notifier.php: Addon::callH ooks('notifier_end',$target_item);
include/items.php: call_h ooks('atom_feed', $atom);
include/items.php: Addon::callH ooks('atom_feed', $atom);
include/items.php: call_h ooks('atom_feed_end', $atom);
include/items.php: Addon::callH ooks('atom_feed_end', $atom);
include/items.php: call_h ooks('atom_feed_end', $atom);
include/items.php: Addon::callH ooks('atom_feed_end', $atom);
include/items.php: call_h ooks('parse_atom', $arr);
include/items.php: Addon::callH ooks('parse_atom', $arr);
include/items.php: call_h ooks('post_remote',$arr);
include/items.php: Addon::callH ooks('post_remote',$arr);
include/items.php: call_h ooks('atom_author', $o);
include/items.php: Addon::callH ooks('atom_author', $o);
include/items.php: call_h ooks('atom_entry', $o);
include/items.php: Addon::callH ooks('atom_entry', $o);
include/bb2diaspora.php: call_h ooks('bb2diaspora',$Text);
include/bb2diaspora.php: Addon::callH ooks('bb2diaspora',$Text);
include/cronhooks.php: call_h ooks('cron', $d);
include/cronhooks.php: Addon::callH ooks('cron', $d);
include/security.php: call_h ooks('logged_in', $a->user);
include/security.php: Addon::callH ooks('logged_in', $a->user);
include/html2bbcode.php: call_h ooks('html2bbcode', $text);
include/html2bbcode.php: Addon::callH ooks('html2bbcode', $text);
include/Contact.php: call_h ooks('remove_user',$r[0]);
include/Contact.php: Addon::callH ooks('remove_user',$r[0]);
include/Contact.php: call_h ooks('contact_photo_menu', $args);
include/Contact.php: Addon::callH ooks('contact_photo_menu', $args);
include/conversation.php: call_h ooks('conversation_start',$cb);
include/conversation.php: Addon::callH ooks('conversation_start',$cb);
include/conversation.php: call_h ooks('render_location',$locate);
include/conversation.php: Addon::callH ooks('render_location',$locate);
include/conversation.php: call_h ooks('display_item', $arr);
include/conversation.php: Addon::callH ooks('display_item', $arr);
include/conversation.php: call_h ooks('render_location',$locate);
include/conversation.php: Addon::callH ooks('render_location',$locate);
include/conversation.php: call_h ooks('display_item', $arr);
include/conversation.php: Addon::callH ooks('display_item', $arr);
include/conversation.php: call_h ooks('item_photo_menu', $args);
include/conversation.php: Addon::callH ooks('item_photo_menu', $args);
include/conversation.php: call_h ooks('jot_tool', $jotplugins);
include/conversation.php: Addon::callH ooks('jot_tool', $jotplugins);
include/conversation.php: call_h ooks('jot_networks', $jotnets);
include/conversation.php: Addon::callH ooks('jot_networks', $jotnets);
include/plugin.php:if(! function_exists('call_hooks')) {
include/plugin.php:function call_h ooks($name, & $data = null) {
include/plugin.php:function Addon::callH ooks($name, & $data = null) {
index.php: call_h ooks('init_1');
index.php: Addon::callH ooks('init_1');
index.php:call_h ooks('app_menu', $arr);
index.php:Addon::callH ooks('app_menu', $arr);
index.php:call_h ooks('page_end', $a->page['content']);
index.php:Addon::callH ooks('page_end', $a->page['content']);
mod/photos.php: call_h ooks('photo_post_init', $_POST);
mod/photos.php: Addon::callH ooks('photo_post_init', $_POST);
mod/photos.php: call_h ooks('photo_post_file',$ret);
mod/photos.php: Addon::callH ooks('photo_post_file',$ret);
mod/photos.php: call_h ooks('photo_post_end',$foo);
mod/photos.php: Addon::callH ooks('photo_post_end',$foo);
mod/photos.php: call_h ooks('photo_post_end',$foo);
mod/photos.php: Addon::callH ooks('photo_post_end',$foo);
mod/photos.php: call_h ooks('photo_post_end',$foo);
mod/photos.php: Addon::callH ooks('photo_post_end',$foo);
mod/photos.php: call_h ooks('photo_post_end',intval($item_id));
mod/photos.php: Addon::callH ooks('photo_post_end',intval($item_id));
mod/photos.php: call_h ooks('photo_upload_form',$ret);
mod/photos.php: Addon::callH ooks('photo_upload_form',$ret);
mod/friendica.php: call_h ooks('about_hook', $o);
mod/friendica.php: Addon::callH ooks('about_hook', $o);
mod/editpost.php: call_h ooks('jot_tool', $jotplugins);
mod/editpost.php: Addon::callH ooks('jot_tool', $jotplugins);
mod/editpost.php: call_h ooks('jot_networks', $jotnets);
mod/editpost.php: Addon::callH ooks('jot_networks', $jotnets);
mod/parse_url.php: call_h ooks('parse_link', $arr);
mod/parse_url.php: Addon::callH ooks('parse_link', $arr);
mod/home.php: call_h ooks('home_init',$ret);
mod/home.php: Addon::callH ooks('home_init',$ret);
mod/home.php: call_h ooks("home_content",$o);
mod/home.php: Addon::callH ooks("home_content",$o);
mod/contacts.php: call_h ooks('contact_edit_post', $_POST);
mod/contacts.php: Addon::callH ooks('contact_edit_post', $_POST);
mod/contacts.php: call_h ooks('contact_edit', $arr);
mod/contacts.php: Addon::callH ooks('contact_edit', $arr);
mod/settings.php: call_h ooks('plugin_settings_post', $_POST);
mod/settings.php: Addon::callH ooks('plugin_settings_post', $_POST);
mod/settings.php: call_h ooks('connector_settings_post', $_POST);
mod/settings.php: Addon::callH ooks('connector_settings_post', $_POST);
mod/settings.php: call_h ooks('settings_post', $_POST);
mod/settings.php: Addon::callH ooks('settings_post', $_POST);
mod/settings.php: call_h ooks('plugin_settings', $settings_addons);
mod/settings.php: Addon::callH ooks('plugin_settings', $settings_addons);
mod/settings.php: call_h ooks('connector_settings', $settings_connectors);
mod/settings.php: Addon::callH ooks('connector_settings', $settings_connectors);
mod/settings.php: call_h ooks('settings_form',$o);
mod/settings.php: Addon::callH ooks('settings_form',$o);
mod/register.php: call_h ooks('register_account', $newuid);
mod/register.php: Addon::callH ooks('register_account', $newuid);
mod/like.php: call_h ooks('post_local_end', $arr);
mod/like.php: Addon::callH ooks('post_local_end', $arr);
mod/xrd.php: call_h ooks('personal_xrd', $arr);
mod/xrd.php: Addon::callH ooks('personal_xrd', $arr);
mod/item.php: call_h ooks('post_local_start', $_REQUEST);
mod/item.php: Addon::callH ooks('post_local_start', $_REQUEST);
mod/item.php: call_h ooks('post_local',$datarray);
mod/item.php: Addon::callH ooks('post_local',$datarray);
mod/item.php: call_h ooks('post_local_end', $datarray);
mod/item.php: Addon::callH ooks('post_local_end', $datarray);
mod/profile.php: call_h ooks('profile_advanced',$o);
mod/profile.php: Addon::callH ooks('profile_advanced',$o);
mod/profiles.php: call_h ooks('profile_post', $_POST);
mod/profiles.php: Addon::callH ooks('profile_post', $_POST);
mod/profiles.php: call_h ooks('profile_edit', $arr);
mod/profiles.php: Addon::callH ooks('profile_edit', $arr);
mod/tagger.php: call_h ooks('post_local_end', $arr);
mod/tagger.php: Addon::callH ooks('post_local_end', $arr);
mod/cb.php: call_h ooks('cb_init');
mod/cb.php: Addon::callH ooks('cb_init');
mod/cb.php: call_h ooks('cb_post', $_POST);
mod/cb.php: Addon::callH ooks('cb_post', $_POST);
mod/cb.php: call_h ooks('cb_afterpost');
mod/cb.php: Addon::callH ooks('cb_afterpost');
mod/cb.php: call_h ooks('cb_content', $o);
mod/cb.php: Addon::callH ooks('cb_content', $o);
mod/directory.php: call_h ooks('directory_item', $arr);
mod/directory.php: Addon::callH ooks('directory_item', $arr);