You are here

function blockreference_field_info in Block reference 7

Same name and namespace in other branches
  1. 6 blockreference.module \blockreference_field_info()
  2. 7.2 blockreference.field.inc \blockreference_field_info()

Implements hook_field_info().

File

./blockreference.module, line 50
Defines a field type for referencing a block from a node.

Code

function blockreference_field_info() {
  return array(
    'blockreference' => array(
      'label' => t('Block reference'),
      'description' => t('This field stores the ID of a related block as an integer value.'),
      'settings' => array(
        'referenceable_regions' => array(),
        'referenceable_modules' => array(),
        'referenceable_operator' => 'AND',
        'respect_visibility' => 0,
        'referenceable_theme' => 'default',
      ),
      'default_widget' => 'options_select',
      'default_formatter' => 'blockreference_default',
    ),
  );
}