You are here

function notifications_object_type in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications.module \notifications_object_type()

Get info about object types

Parameters

$type: String, the subscriptions type OPTIONAL

$field: String, a specific field to retrieve info from OPTIONAL

Information for a given field and type or information for a given field for all types

7 calls to notifications_object_type()
Notifications_Event::add_object in includes/notifications_event.class.inc
Add event object
notifications_field_form_element in includes/object.inc
Build a form element to edit a field
notifications_field_get_info in includes/object.inc
Get full info array for field type that has the property.
notifications_object_access in includes/object.inc
Check access to an object for user account
notifications_user_get_subscriptions in ./notifications.module
Get active subscriptions for a given user to some object

... See full list

File

./notifications.module, line 967
Notifications module

Code

function notifications_object_type($type = NULL, $field = NULL) {
  $types = notifications_info('object types');
  return notifications_array_info($types, $type, $field);
}