function blockreference_field_widget_info in Block reference 7
Same name and namespace in other branches
- 7.2 blockreference.field.inc \blockreference_field_widget_info()
Implements hook_field_widget_info().
File
- ./
blockreference.module, line 302 - Defines a field type for referencing a block from a node.
Code
function blockreference_field_widget_info() {
return array(
'blockreference_autocomplete' => array(
'label' => t('Autocomplete text field'),
'description' => t('Display the list of referenceable blocks as a textfield with autocomplete behaviour.'),
'field types' => array(
'blockreference',
),
'settings' => array(
'size' => 60,
'autocomplete_path' => 'blockreference/autocomplete',
),
),
'blockreference_select_sort' => array(
'label' => t('Select list (with drag-and-drop sort) DEPRECATED'),
'description' => '<b>' . t('Deprecated in favor of <a href="http://drupal.org/multiple_selects">Multiple Selects</a>') . '</b>',
'field types' => array(
'blockreference',
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'default value' => FIELD_BEHAVIOR_DEFAULT,
),
),
);
}