You are here

function shariff_entity_extra_field_info in Shariff Social Media Buttons 8

Implements hook_entity_extra_field_info().

File

./shariff.module, line 226
Integrating Shariff library, providing settings form and block.

Code

function shariff_entity_extra_field_info() {
  $extra = [];
  foreach (NodeType::loadMultiple() as $bundle) {
    $extra['node'][$bundle
      ->Id()]['display']['shariff_field'] = [
      'label' => t('Shariff sharing buttons'),
      'description' => t('Display of Shariff sharing buttons using default settings.'),
      'weight' => 100,
      'visible' => FALSE,
    ];
  }
  return $extra;
}