function sexybookmarks_field_extra_fields in Share Buttons, Related Posts, Content Analytics - Shareaholic 7
Same name and namespace in other branches
- 7.2 includes/field_ui.inc \sexybookmarks_field_extra_fields()
Implements hook_field_extra_fields().
File
- includes/
field_ui.inc, line 81 - Field UI module integration.
Code
function sexybookmarks_field_extra_fields() {
$extra = array();
ctools_include('export');
foreach (field_info_bundles() as $entity => $bundles) {
foreach (array_keys($bundles) as $bundle) {
$profile = ctools_export_crud_load('sexybookmarks_profiles', variable_get("{$entity}_sexybookmarks_profile_{$bundle}", 'default'));
if (!empty($profile)) {
$extra[$entity][$bundle] = array(
'display' => array(
'sexybookmarks' => array(
'label' => t('SexyBookmarks'),
'description' => t('SexyBookmarks'),
'weight' => 100,
),
),
);
}
}
}
return $extra;
}