function _messaging_callback_get in Messaging 6.4
Same name and namespace in other branches
- 6 messaging.module \_messaging_callback_get()
- 6.2 messaging.module \_messaging_callback_get()
- 6.3 messaging.module \_messaging_callback_get()
Get a callback from the information array if present
Parameters
$info: Information array, typically a messaging method info array
$type: Callback type, the search key will be '[type] callback'
$default: Default callback to return if not in the $info array
1 call to _messaging_callback_get()
- Messaging_Methods_Tests::testMessagingMethods in tests/
messaging_methods.test - Test message sending callbacks for enabled plug-ins
File
- ./
messaging.module, line 805
Code
function _messaging_callback_get($info, $type, $default = NULL) {
if (!empty($info[$type . ' callback'])) {
return $info[$type . ' callback'];
}
else {
return $default;
}
}