I would be glad to pass an extra variable that is created outside to the inner function in my custom module. That inner function is a hook. But i can not pass variable as an pareamter of that function, or could I ?
Nice to have ;) :
$foo = 1;
function hook_tapir_table_alter (&$table, $table_id ) {
echo $foo;
}
As a workaround, i can wrap $foo in a function and do i this way
function process_vars () {
$foo = 1;
return $foo;
}
function hook_tapir_table_alter (&$table, $table_id ) {
echo process_vars ();
}
How could i go without function call to outside function ? Any clues? Thanx!