public function CommerceLicenseBase::form in Commerce License 7
Implements CommerceLicenseInterface::form().
Overrides CommerceLicenseInterface::form
1 call to CommerceLicenseBase::form()
- CommerceLicenseRemoteBase::form in includes/
plugins/ license_type/ base.inc - Overrides CommerceLicenseBase::form().
1 method overrides CommerceLicenseBase::form()
- CommerceLicenseRemoteBase::form in includes/
plugins/ license_type/ base.inc - Overrides CommerceLicenseBase::form().
File
- includes/
plugins/ license_type/ base.inc, line 273 - Abstract and interface plugin implementation.
Class
- CommerceLicenseBase
- License base class.
Code
public function form(&$form, &$form_state) {
field_attach_form('commerce_license', $this, $form, $form_state, LANGUAGE_NONE);
// The num_renewals field should not be editable by the customer.
$form['num_renewals']['#access'] = FALSE;
}