Documentation

Features

This is an old revision of the document!


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

$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);

Have more questions? Visit our community forums.