function _notifications_field_callback in Notifications 6.4
Invoke a callback for a field type.
If the field has no callback it will default to the field object type callback
Parameters
$type: Subscription type
$name: Callback name
$arg1, $arg2...: Variable arguments
1 call to _notifications_field_callback()
- notifications_field_form_element in includes/object.inc 
- Build a form element to edit a field
File
- includes/object.inc, line 21 
- Notifications object and fields
Code
function _notifications_field_callback() {
  $args = func_get_args();
  $type = array_shift($args);
  $name = array_shift($args);
  // We try first the field callback, then the field object type callback
  $info = notifications_subscription_fields($type);
  if (isset($info[$name])) {
    return _notifications_info_callback($info, $name, $args);
  }
  elseif (!empty($info['object_type']) && ($object_info = notifications_object_type($info['object_type'])) && isset($object_info[$name])) {
    return _notifications_info_callback($object_info, $name, $args);
  }
  else {
    return NULL;
  }
}