function facebook_comments_field_extra_fields in Facebook Comments Social Plugin 7
Implements hook_field_extra_fields().
File
- ./
facebook_comments.module, line 241 - Facebook Comments Social Plugin module file.
Code
function facebook_comments_field_extra_fields() {
$extra = array();
$default_types = variable_get('facebook_comments_types', array());
foreach (node_type_get_types() as $type) {
if (facebook_comments_is_enabled($type->type)) {
$extra['node'][$type->type] = array(
'display' => array(
'facebook_comments' => array(
'label' => t('Facebook comments'),
'description' => t('Facebook comments'),
'weight' => 1002,
),
),
);
}
}
return $extra;
}