You are here

function nd_permalink_ds_fields in Display Suite 6.3

Implementation of hook_ds_fields().

File

modules/nd/modules/nd_permalink/nd_permalink.module, line 11
The ND Permalink module provides a new field for node displays which renders a field containing a permalink to the current object.

Code

function nd_permalink_ds_fields($type_name, $build_mode, $extra) {

  // Node fields
  $nd_fields = array();
  $nd_fields['nd'] = array();
  $nd_fields['nd']['permalink'] = array(
    'title' => t('Permalink'),
    'type' => DS_FIELD_TYPE_THEME,
    'status' => DS_FIELD_STATUS_STATIC,
    'properties' => array(
      'formatters' => array(
        'nd_permalink_permalink' => t('Permalink'),
      ),
    ),
  );
  return $nd_fields;
}