Announcement

  •  » Engine
  •  » event_handler

#1 2012-02-03 11:19:38

wernerk
Member
2012-01-22
31

event_handler

Hello,

for testing reasons I have written a little piece of php code for using in a personal plug-in:

----

add_event_handler('check_status', 'change_access_type');

function change_access_type($access_type, $user_status = '')

{
  echo "Hello World";
}

----

check_status is a function in functions_user_inc.php

Why doesn't it work? At least it should produce an error message ... :-)

I'm an absolute php beginner, but nevertheless I hope someone here can help me or at least give a feedback.

Greetings
Werner

Offline

 

#2 2012-02-03 13:19:20

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: event_handler

Hi,
you can't add an event_handler to a function, only to registered events and actions
for a full list of availables events check this http://piwigo.us/dev/mistic100/triggers … s_list.php

Offline

 

#3 2012-02-07 20:35:40

wernerk
Member
2012-01-22
31

Re: event_handler

Thanks. That helps me on.

Greetings
Werner

Offline

 
  •  » Engine
  •  » event_handler

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact