2009-01-18, 11:00 AM
$plugins->run_hooks("member_do_register_start");
i see that in the members.php file
if i want i can add a hook to that
$plugins->add_hook("member_do_register_start", 'kill_the_user');
Question
I have a custom php file that ads stuff to the database etc...i want to add a
$run_hooks("user_eats");
so that later on i can do
$plugins->add_hook("user_eats", 'kill_the_user');
what is the procedure for doing that ...i mean do i need a function called
"user eats" ..what should or shouldn't that function do
please help as in this area im still learning
i see that in the members.php file
if i want i can add a hook to that
$plugins->add_hook("member_do_register_start", 'kill_the_user');
Question
I have a custom php file that ads stuff to the database etc...i want to add a
$run_hooks("user_eats");
so that later on i can do
$plugins->add_hook("user_eats", 'kill_the_user');
what is the procedure for doing that ...i mean do i need a function called
"user eats" ..what should or shouldn't that function do
please help as in this area im still learning