You are here

function notifications_content_content_extra_fields in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications_content/notifications_content.module \notifications_content_content_extra_fields()

Implementation of hook hook_content_extra_fields().

Enables CCK (admin/content/types/CONTENT_TYPE/fields) to configure the position of the notifications fieldset within the node.

File

notifications_content/notifications_content.module, line 200
Subscriptions to content events

Code

function notifications_content_content_extra_fields($type_name) {
  $extra = array();
  if (notifications_content_type_enabled($type_name) && (notifications_event_enabled('node-insert') || notifications_event_enabled('node-update'))) {
    $extra['notifications'] = array(
      'label' => t('Notifications'),
      'description' => t('Notifications module form.'),
      'weight' => 100,
    );
  }
  return $extra;
}