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

Have more questions? Visit our community forums.