function _notifications_info_callback in Notifications 6.4
Get a callback for an objec type
6 calls to _notifications_info_callback()
- notifications_field_format_value in includes/
object.inc - Format field value
- notifications_field_real_value in includes/
object.inc - Convert field value from submission into its real value
- notifications_field_subscription_options in includes/
object.inc - Get options for fields with options callback, may depend on subscription type
- _notifications_field_callback in includes/
object.inc - Invoke a callback for a field type.
- _notifications_object_callback in ./
notifications.module - Invoke a callback for an object type
File
- ./
notifications.module, line 1027 - Notifications module
Code
function _notifications_info_callback($info, $name, $args) {
// We may need to include the file before
if (isset($info['file'])) {
notifications_include($info['file'], $info['module']);
}
if (isset($info[$name]) && function_exists($info[$name])) {
// The callback may have arguments, a property like 'format callback args'
if (isset($info[$name . ' args'])) {
$args[] = $info[$name . ' args'];
}
return call_user_func_array($info[$name], $args);
}
}