You are here

function notifications_ui_content_extra_fields in Notifications 7

Same name and namespace in other branches
  1. 6.4 notifications_ui/notifications_ui.module \notifications_ui_content_extra_fields()

Implementation of hook hook_content_extra_fields().

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

File

notifications_ui/notifications_ui.module, line 169
User Interface for subscriptions modules

Code

function notifications_ui_content_extra_fields($type_name) {
  $extra = array();
  if (notifications_ui_node_options($type_name, 'form')) {
    $extra['subscriptions'] = array(
      'label' => t('Subscriptions'),
      'description' => t('Notifications UI subscriptions form.'),
      'weight' => 100,
    );
  }
  return $extra;
}