I'm making a new module and can't figure it out...
Normally if I use a function directly in template(s), I can do the following:
echo function($1, $2, $, $4);
where $1, $2, $3, $4 are arguments passed to a function.
Posted 04 December 2011 - 12:03 PM
echo function($1, $2, $, $4);
Posted 04 December 2011 - 12:27 PM
<?php
public function someCustomFunction( HookEvent $event ) {
// get page object
$page = $event->object;
// get first argument
$some_id = (int) $event->arguments[0];
// current language
$lang = $event->arguments[1];
@somartist | modules created | support me, flattr my work flattr.com
0 members, 0 guests, 0 anonymous users