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.
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
$modules->call_hook('page', '$page');
printer.php
$modules->call_hook('printer', $view);
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);
userindex.php
$modules->call_hook('userindex', $userid);
userorders.php
$modules->call_hook('userorders_view', $id);
$modules->call_hook('userorders', $userid);
viewlisting.php
$modules->call_hook('view_listing', $view);
administration/pages.php
$modules->call_hook('add_page', '');
$modules->call_hook('edit_page', $pageID);
administration/includes/init.php
$modules->call_hook('load_admin_language', $language);
includes/classes/kernel/listings.php
- function getAllListings
$select = $modules->call_hook('searchlistings_select', '');
$where .= $modules->call_hook('searchquery_where', '');
- function getListingsForMember
$where = $modules->call_hook('userbrowselistings_where', '');
- function changeDisplay
$data=array('id'=> $id, 'status'=>$status);
$where = $modules->call_hook('change_display_status', $data);
- function deleteListing
$modules->call_hook('delete_listing', $id);
- function deleteUsersListings
$modules->call_hook('deleted_user_listings', $userid);
- function editListing
$status=array('id'=> $data['id'], 'status'=>$data['display']);
$modules->call_hook('change_display_status', $status);
$modules->call_hook('listing_modified', $data['id']);
includes/classes/kernel/Orders.php
- function changeDisplay
$data=array('id'=> $id, 'status'=>$status);
$modules->call_hook('change_order_status', $data);
includes/classes/kernel/Private.php
- function markAsSpam
$select = $modules->call_hook('markpmspam', $pmid);
- function sendMessage
$select = $modules->call_hook('sendpm', $data);
includes/classes/kernel/Register.php
- function createSignup
$modules->call_hook('user_join', $userDetails);
- function modifySignup
$modules->call_hook('user_modify', $userDetails);
includes/classes/kernel/Users.php
- function banUser
$modules->call_hook('banned_user', $id);
includes/cron.php
$modules->call_hook('cron', '');
includes/init.php
$modules->call_hook('start', '');
$modules->call_hook('post_init', '');