You are here

function entity_block_field_extra_fields in Entity Blocks 7

Implements hook_field_extra_fields().

File

./entity_block.module, line 387
Display entities (via view modes) as fieldable blocks.

Code

function entity_block_field_extra_fields() {
  $form_elements['entity'] = array(
    'label' => t('Entity block'),
    'description' => t('The entity block element'),
    'weight' => -5,
  );
  $extra_fields['entity_block']['entity_block']['form'] = $form_elements;
  $extra_fields['entity_block']['entity_block']['display'] = $form_elements;
  return $extra_fields;
}