Just use the following code in your
.module
file:
- /**
- * Implements hook_field_widget_form_alter().
- */
- function MY_MODULE_field_widget_form_alter(&$element, &$form_state, $context) {
- if ($context['field']['type'] == 'addressfield') {
- $element['street_block']['thoroughfare']['#title'] = t('Address');
- $element['street_block']['premise']['#access'] = FALSE;
- }
- }