You are here

function _messaging_callback in Messaging 6.4

Same name and namespace in other branches
  1. 6 messaging.module \_messaging_callback()
  2. 6.2 messaging.module \_messaging_callback()
  3. 6.3 messaging.module \_messaging_callback()

Build callback structure to be invoked later

A callback structure will be an array containing the function name to invoke and a list of arguments for that function

Parameters

$function: Function name

$arg1, $arg1, $arg3:

File

./messaging.module, line 663

Code

function _messaging_callback() {
  $args = func_get_args();
  if (count($args) > 1) {

    // Array with function name, param1, param2..
    return $args;
  }
  else {

    // Simple string with function name
    return array_shift($args);
  }
}