Since it looks like we will never get a county field, I'm using the "Location name" as a county field. I know it shows up in the DB as "name" but at least I can finally collect county info, index it with Solr, and search by it. I love this module but I can't believe we still don't have a county field.
Anyway, I've figured out how to get it to display "xyz county" in the node view, where "xyz" is actually the Location name.
What I can't figure out is how to get it to say "County:" on the INPUT form rather than "Location name:" ? And get rid of that little text: "e.g. a place of business, venue, meeting point"
I know this is easy and I feel like a fool cuz I've wasted several days and I still can't find it, (boy do i feel stupid)... but please, somebody tell me how I can change those few words on the input form?
Thanks,
Tim
Comments
Comment #1
nevets commentedYou should be able to use the string overrides module to change "Location name" to "County". There appears to be a setting for the help message but it does not appear to work in which case you would need to make a module that implements hook_form_alter() to change the help text.
Comment #2
lcatlett commentedIn location.module, change:
'#type' => 'textfield',
'#title' => t('Location name'),
'#default_value' => $obj,
'#size' => 64,
'#maxlength' => 255,
'#description' => t('e.g. a place of business, venue, meeting point'),
'#attributes' => NULL,
'#required' => ($a4 == 2),
to
'#type' => 'textfield',
'#title' => t('County'),
'#default_value' => $obj,
'#size' => 64,
'#maxlength' => 255,
'#description' => t(''),
'#attributes' => NULL,
'#required' => ($a4 == 2),
Comment #3
trgreen17 commented@nevets: Thanks for the suggestion! I think I'll go with the second one, but now I know about "String Overrides" module!
Comment #4
trgreen17 commented@lcatlett:
Thanks so much! I had actually changed a line in there a long time ago to get it to say "County" on the node, but your way should change it everywhere, yes?
Trying now, wish me luck!
Thanks again,
Tim
Comment #5
trgreen17 commented@lcatlett - Yes!
Worked perfectly, and I was even able to change "Postal code" to Zip, etc., and re-ordered the output.
You just introduced me to a whole new level of "Drupalness."
Thanks again!
Tim
Comment #6
nevets commentedThough it is not best practices since it makes updating the module harder.
Comment #7
legolasboClosing old D6 issues as D6 is end of life