Download & Extend

Allow flexibility in the "Company" label (e.g. "Organization" or "Home")

Project:Address Field
Version:7.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Perhaps I missed something obvious, but is there an easy way to re-title the "Company" field to "Organization"? The latter seems more universal and the only other option is "Full Name" which is not appropriate.

I see that it's already called "Organization" on the back-end, when you create a field, but not on the form itself. If I can't change it easily, perhaps this could be a feature request?

C.

Comments

#1

I agree that organisation fits better. Here is my solution to fix it for now through form_alter. It will modify only the first element of that field

/**
* Implements hook_form_alter().
*/
function module_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'event_node_form') {
    $form['field_event_location'][LANGUAGE_NONE][0]['organisation_block']['organisation_name']['#title'] = t('Organisation');
  }
}

Svilen

#2

I'd like to see a more-general solution -- perhaps one where the site builder can change that label easily in the field settings.

In my case, I'm creating a personal contact manager. I'd like that field to read "Address type", so users could say "Home", "Work", "School", etc.

(I also realize that this is outside the needs of most Drupal Commerce sites, and that DC is the motivator behind this module.)

#3

Title:Change "Company" to "Organization"?» Allow flexibility in the "Company" label (e.g. "Organization" or "Home")

#4

I also wanted to mention that this functionality is available by adding the String Overrides module to your site. It's at https://drupal.org/project/stringoverrides.

nobody click here