Module Hooks
Module Hooks allow your modules to interact with specific parts of 68 Classifieds internal coding. Below is a list of each individual file and the hooks that are available in it. Keep in mind this is not a full list but should contain the majority of hooks. It is recommended to do a file search to find all the hooks.
Front End
Front end hooks
category.php
$template = $modules->call_hook('category', $cat['id']); if($template != '') { $class_tpl->assign('custom', $template); }
contact.php
$modules->call_hook('contact', '');
index.php
$modules->call_hook('index', '');
login.php
$params=array ('username'=>$_POST['username'],'password'=>$_POST['password']); modules->call_hook('user_login_invalid', '$params');
pages.php
$page = ( empty($_GET['page']) ) ? 1 : (int)$_GET['page']; $modules->call_hook('page', '$page');
searchresults.php
$modules->call_hook('search_start', ''); $modules->call_hook('search_end', '');
toplistings.php
$modules->call_hook('search_start', ''); $modules->call_hook('search_end', '');
useraccountmodify.php
$modules->call_hook('useraccountmodify_start', $userid);
usercheckout.php
$modules->call_hook('checkout_end', '');
userindex.php
$modules->call_hook('userindex', $userid);
userjoin.php
$modules->call_hook('userjoin', '');
userorders.php
$modules->call_hook('userorders_view', $id); $modules->call_hook('userorders', $userid);
viewlisting.php
$modules->call_hook('view_listing', $view); $modules->call_hook('viewlisting_end', $listing_rs);
Administration
Administration hooks
administration/includes/init.php
$modules->call_hook('post_admin_init', '');
administration/pages.php
$modules->call_hook('add_page', ''); $modules->call_hook('edit_page', $pageID);
administration/users.php
$modules->call_hook('admin_users_add', ''); $modules->call_hook('admin_users_modify', ''); $modules->call_hook('admin_users_view', '');
Includes
Includes directory hooks.
includes/init.php
$modules->call_hook('start', '');
Have more questions? Visit our community forums.