You are here

function disqus_ds_ds_fields_info in Disqus 7

Implementation of hook_ds_fields_info().

File

disqus_ds/disqus_ds.module, line 11
Drupal module that adds Disqus support to Display Suite.

Code

function disqus_ds_ds_fields_info($entity_type) {
  $fields = array();
  $fields['node'] = array(
    'disqus_comment' => array(
      'title' => t('Disqus comments'),
      'field_type' => DS_FIELD_TYPE_FUNCTION,
      'function' => '_disqus_ds_comment',
    ),
    'disqus_comment_count' => array(
      'title' => t('Disqus comment count'),
      'field_type' => DS_FIELD_TYPE_FUNCTION,
      'function' => '_disqus_ds_comment_count',
    ),
  );
  return $fields;
}