Untitled

mail@pastecode.io avatar
unknown
php
2 years ago
898 B
2
Indexable
Never
//$form['commerce_fieldgroup_pane__group_subscription_start']['field_data_inizio_abbonamento'][LANGUAGE_NONE][0]['#type'] = 'date_popup';
                $form['commerce_fieldgroup_pane__group_subscription_start']['field_data_inizio_abbonamento'][LANGUAGE_NONE][0]['#title'] = '';
                //$form['commerce_fieldgroup_pane__group_subscription_start']['field_data_inizio_abbonamento'][LANGUAGE_NONE][0]['#date_format'] = 'd/m/Y';
                //$form['commerce_fieldgroup_pane__group_subscription_start']['field_data_inizio_abbonamento'][LANGUAGE_NONE][0]['#default_value'] = date('d/m/Y');
                $form['commerce_fieldgroup_pane__group_subscription_start']['field_data_inizio_abbonamento'][LANGUAGE_NONE][0]['#required'] = true;
                $form['commerce_fieldgroup_pane__group_subscription_start']['field_data_inizio_abbonamento']['#pre_render'] = array('ga_date_label');