You are here

function rrssb_field_extra_fields in Ridiculously Responsive Social Sharing Buttons 7.2

Same name and namespace in other branches
  1. 7 rrssb.module \rrssb_field_extra_fields()

Implements hook_field_extra_fields().

File

./rrssb.module, line 735

Code

function rrssb_field_extra_fields() {
  $extra = array();
  foreach (node_type_get_types() as $node_type) {
    if (variable_get('rrssb_' . $node_type->type) == 1) {
      $extra['node'][$node_type->type]['display']['rrssb'] = array(
        'label' => t('Ridiculously Responsive Social Share Buttons'),
        'description' => t('A fake field to display Social buttons'),
        'weight' => 10,
      );
    }
  }
  return $extra;
}