function social_comments_field_formatter_info in Open Social 7
Implements hook_field_formatter_info().
File
- ./
social_comments.module, line 181
Code
function social_comments_field_formatter_info() {
$formatters = array();
$formatters['social_comments_google'] = array(
'label' => t('Social comments (Google)'),
'field types' => array(
'social_comments_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'settings' => array(
'count' => 0,
),
);
// @todo: Rewrite facebook implementation.
$formatters['social_comments_facebook'] = array(
'label' => t('Social comments (Facebook)'),
'field types' => array(
'social_comments_field',
),
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'settings' => array(
'count' => 0,
),
);
// @todo: Write own implementation.
// $library = libraries_detect('acTwitterConversation');
// if ($library['installed']) {
// $formatters['social_comments_twitter'] = array(
// 'label' => t('Social comments (Twitter)'),
// 'field types' => array('social_comments_field'),
// 'multiple values' => FIELD_BEHAVIOR_DEFAULT,
// 'settings' => array(
// 'count' => 0,
// ),
// );
// }
return $formatters;
}