You are here

function notifications_field_get_info in Notifications 6.4

Get full info array for field type that has the property.

It will return the info array for the field it it has the property or the info for the object type

Parameters

$type: Field type

$property: Property we are looking for

Return value

array() Info array from field or from object type

3 calls to notifications_field_get_info()
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

File

includes/object.inc, line 194
Notifications object and fields

Code

function notifications_field_get_info($type, $property) {
  if ($info = notifications_field_type($type)) {
    if (isset($info[$property])) {
      return $info;
    }
    elseif (!empty($info['object_type']) && notifications_object_type($info['object_type'], $property)) {
      return notifications_object_type($info['object_type']);
    }
  }
}