You are here

function uniqueness_content_extra_fields in Uniqueness 6

Implementation of hook_content_extra_fields().

Allows the inline uniqueness field to be sorted on the manage fields page if CCK is installed.

File

./uniqueness.module, line 81
uniqueness.module

Code

function uniqueness_content_extra_fields() {

  // Check that the inline widget is enabled
  $widget_types = variable_get('uniqueness_widgets', array(
    UNIQUENESS_WIDGET_INLINE,
  ));
  if (!in_array(UNIQUENESS_WIDGET_INLINE, $widget_types)) {
    return array();
  }
  $extras['uniqueness'] = array(
    'label' => filter_xss_admin(variable_get('uniqueness_default_title', t('Related content'))),
    'description' => t('Uniqueness inline widget.'),
  );
  return $extras;
}