1 field.module field_block_info()

Implements hook_block_info().

File

core/modules/field/field.module, line 1252
Attach custom data fields to Backdrop entities.

Code

function field_block_info() {
  $blocks['field_block'] = array(
    'info' => t('Field block'),
    'description' => 'Displays a field from a referenced entity.',
    'class' => 'FieldBlock',
    'required contexts' => array('entity' => 'entity'),
  );

  return $blocks;
}