You are here

function addthis_ds_fields in AddThis 6.2

Implementation of hook_ds_fields().

File

./addthis.module, line 110
Stand alone module file to handle AddThis button integration

Code

function addthis_ds_fields($type_name, $build_mode, $extra) {
  if (variable_get('addthis_nodetype_' . $type_name, 1)) {
    return array(
      'nd' => array(
        'addthis' => array(
          'title' => t('AddThis'),
          'type' => DS_FIELD_TYPE_FUNCTION,
          'status' => DS_FIELD_STATUS_STATIC,
          'properties' => array(
            'formatters' => array(
              '_addthis_ds_create_button' => t('AddThis'),
            ),
          ),
        ),
      ),
    );
  }
}