function blockreference_field_widget_info_alter in Block reference 7
Same name and namespace in other branches
- 7.2 blockreference.field.inc \blockreference_field_widget_info_alter()
Implements hook_field_widget_info_alter().
File
- ./
blockreference.module, line 328 - Defines a field type for referencing a block from a node.
Code
function blockreference_field_widget_info_alter(&$info) {
$info['options_select']['field types'][] = 'blockreference';
$info['options_buttons']['field types'][] = 'blockreference';
if (module_exists('multiple_selects')) {
$info['multiple_selects']['field types'][] = 'blockreference';
}
}