function context_field_field_info in Context Field 7
Implements hook_field_info().
File
- ./
context_field.module, line 96 - Context Field
Code
function context_field_field_info() {
return array(
'context_field' => array(
'label' => t('Context'),
'description' => t('This field create a Context for the entity view'),
'settings' => array(
'global_setting' => 255,
),
// Additional configuration can be done through this part
'instance_settings' => array(
'allowed_blocks' => array(),
'default_context' => 'context_field_default_context',
'use_default' => 0,
),
'default_widget' => 'context_field',
'default_formatter' => 'context_field_context',
// Might turn this on later
'no_ui' => FALSE,
),
);
}