static function CommerceLicenseBase::fields in Commerce License 7
Implements EntityBundlePluginProvideFieldsInterface::fields().
Overrides EntityBundlePluginProvideFieldsInterface::fields
2 calls to CommerceLicenseBase::fields()
- CommerceLicenseExample::fields in modules/
commerce_license_example/ plugins/ license_type/ CommerceLicenseExample.class.php - Implements EntityBundlePluginProvideFieldsInterface::fields().
- CommerceLicenseRemoteBase::fields in includes/
plugins/ license_type/ base.inc - Implements EntityBundlePluginProvideFieldsInterface::fields().
2 methods override CommerceLicenseBase::fields()
- CommerceLicenseExample::fields in modules/
commerce_license_example/ plugins/ license_type/ CommerceLicenseExample.class.php - Implements EntityBundlePluginProvideFieldsInterface::fields().
- CommerceLicenseRemoteBase::fields in includes/
plugins/ license_type/ base.inc - Implements EntityBundlePluginProvideFieldsInterface::fields().
File
- includes/
plugins/ license_type/ base.inc, line 245 - Abstract and interface plugin implementation.
Class
- CommerceLicenseBase
- License base class.
Code
static function fields() {
$fields = array();
$fields['num_renewals']['field'] = array(
'type' => 'number_integer',
'cardinality' => 1,
);
$fields['num_renewals']['instance'] = array(
'label' => t('Number of renewals'),
);
return $fields;
}