function command_buttons_field_extra_fields in Command Buttons 7
Implements hook_fied_extra_fields().
File
- ./
command_buttons.module, line 359
Code
function command_buttons_field_extra_fields() {
$extra = array();
$entity_info = entity_get_info('command_button');
foreach ($entity_info['bundles'] as $bundle => $info) {
$extra['command_button'][$bundle] = array(
'form' => array(
'title' => array(
'label' => t('Title'),
'description' => t('The displayed title of the entity.'),
'weight' => -5,
),
),
'display' => array(
'title' => array(
'label' => t('Title'),
'description' => t('The displayed title of the entity.'),
'weight' => -5,
),
),
);
}
return $extra;
}