function commerce_license_field_widget_info in Commerce License 7
Implements hook_field_widget_info().
File
- ./
commerce_license.module, line 969 - Provides a framework for selling access to local or remote resources.
Code
function commerce_license_field_widget_info() {
$widgets = array();
if (module_exists('inline_entity_form')) {
$widgets['inline_entity_form_license'] = array(
'label' => t('Inline Entity Form - Commerce License'),
'field types' => array(
'entityreference',
),
'settings' => array(
'fields' => array(),
'type_settings' => array(),
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
'default value' => FIELD_BEHAVIOR_NONE,
),
);
}
$widgets['commerce_license_duration'] = array(
'label' => t('License duration'),
'field types' => array(
'text',
),
);
return $widgets;
}