CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Full State/Province name in views?
Pages: 1 [2]

Author Topic: Full State/Province name in views?  (Read 6328 times)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Full State/Province name in views?
October 23, 2011, 04:11:21 pm

Might want to get on IRC and ping "jalama" on this who maintains the views integration

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

bouton

  • Guest
Re: Full State/Province name in views?
October 25, 2011, 06:01:47 am
In 4.0.6 I fixed this bug by editing drupal/modules/views/civicrm.views.inc and changing
<code>
$data['civicrm_address']['state_province'] = array(
                                                       'title' => t('State / Province'),
                                                       'real field' => 'state_province_id',
                                                       'help' => t('The State or Province of the Address'),
                                                       'field' => array(
                                                                        'handler' => 'civicrm_handler_field_address', // WRONG
                                                                        'click sortable' => TRUE,
                                                                        ),
</code>

to
<code>
$data['civicrm_address']['state_province'] = array(
                                                       'title' => t('State / Province'),
                                                       'real field' => 'state_province_id',
                                                       'help' => t('The State or Province of the Address'),
                                                       'field' => array(
                                                                        'handler' => 'civicrm_handler_field_state', // hacked as this handler does exist
                                                                        'click sortable' => TRUE,
                                                                        ),
</code>

This gives me the radio button option to select full name for states/provinces

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Full State/Province name in views?

This forum was archived on 2017-11-26.