You are here

function enterprise_fields_ds_fields_info in Enterprise Base 7.3

Implements hook_ds_fields_info().

File

enterprise_fields/enterprise_fields.module, line 6

Code

function enterprise_fields_ds_fields_info($entity_type) {
  $node = array();
  $user = array();
  $user['user_thumbnail'] = array(
    'title' => t('User Thumbnail'),
    'field_type' => DS_FIELD_TYPE_FUNCTION,
    'ui_limit' => array(
      '*|*',
    ),
    'function' => 'enterprise_fields_user_thumbnail',
    'properties' => array(),
  );
  $node['unpublished'] = array(
    'title' => t('Unpublished Banner'),
    'field_type' => DS_FIELD_TYPE_FUNCTION,
    'ui_limit' => array(
      '*|*',
    ),
    'function' => 'enterprise_fields_unpublished',
    'properties' => array(),
  );
  $node['submit_info'] = array(
    'title' => t('Submit Info (Date, Author)'),
    'field_type' => DS_FIELD_TYPE_FUNCTION,
    'ui_limit' => array(
      '*|*',
    ),
    'function' => 'enterprise_fields_submit_info',
    'properties' => array(),
  );
  if (module_exists('enterprise_user')) {
    $node['about_author'] = $user['about_author'] = array(
      'title' => t('About Author'),
      'field_type' => DS_FIELD_TYPE_FUNCTION,
      'ui_limit' => array(
        '*|*',
      ),
      'function' => 'enterprise_fields_about_author',
      'properties' => array(),
    );
    $user['blog_author'] = array(
      'title' => t('Blog Author'),
      'field_type' => DS_FIELD_TYPE_FUNCTION,
      'ui_limit' => array(
        '*|*',
      ),
      'function' => 'enterprise_fields_blog_author',
      'properties' => array(),
    );
  }
  if (module_exists('prev_next')) {
    $node['prev_next_node'] = array(
      'title' => t('Prev/Next Node'),
      'field_type' => DS_FIELD_TYPE_FUNCTION,
      'ul_limit' => array(
        '*|*',
      ),
      'function' => 'enterprise_fields_prev_next_node',
      'properties' => array(),
      'direction' => 'next',
    );
  }
  if (module_exists('comment')) {
    $node['comment_count'] = array(
      'title' => t('Comment Count'),
      'field_type' => DS_FIELD_TYPE_FUNCTION,
      'ui_limit' => array(
        '*|*',
      ),
      'function' => 'enterprise_fields_comment_count',
      'properties' => array(),
    );
  }
  return array(
    'node' => $node,
    'user' => $user,
  );
}