public function Messaging_Send_Method::__call in Messaging 6.3
Magic function, invoking non existent methods
For backwards compatibility with old array callbacks
File
- classes/
messaging_method.class.inc, line 276 - Drupal Messaging Framework - Send_Method class file
Class
- Messaging_Send_Method
- Sending method, implements all specific method functionality
Code
public function __call($name, $arguments) {
// If we have an old style callback like this, go for it
if ($callback = $this
->get_callback($name)) {
if (is_array($callback)) {
// It is an array: function, arg1, arg2...
$function = array_shift($callback);
$arguments = array_unshift($callback, $arguments);
}
else {
// It is just a function name
$function = $callback;
}
return call_user_func_array($function, $params);
}
}