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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Gettting Registration Link Text in Drupal Views
Pages: [1]

Author Topic: Gettting Registration Link Text in Drupal Views  (Read 1005 times)

mhenning

  • Guest
Gettting Registration Link Text in Drupal Views
April 27, 2010, 03:45:33 pm
I am trying to get the Registration Link Text in a Drupal View.  It does not appear to be an option for a data field.  Is that correct, and if so, how would I add it in?

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: Gettting Registration Link Text in Drupal Views
April 27, 2010, 05:08:39 pm

since we are exposing the civicrm_event table, we should also be exposing that field. you might want to check here:

drupal/modules/views/civicrm.views.inc

please report back your findings

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

mhenning

  • Guest
Re: Gettting Registration Link Text in Drupal Views
April 27, 2010, 10:14:44 pm
Ok, I added this to the civicrm.views.inc file to get access to it:

   //EVENT LINK TEXT
    $data['civicrm_event']['registration_link_text'] = array(
                                            'title' => t('Registration Link Text'),
                                            'help' => t('The Text for the Registration Link'),
                                            'field' => array(
                                                             'handler' => 'civicrm_handler_field_event_link',
                                                             'click sortable' => TRUE,
                                                             ),

                                            'argument' => array(
                                                                'handler' => 'views_handler_argument',
                                                                ),

                                            'filter' => array(
                                                              'handler' => 'views_handler_filter_string',
                                                              'allow empty' => TRUE,
                                                              ),

                                            'sort' => array(
                                                            'handler' => 'views_handler_sort',
                                                            ),
                                            );

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: Gettting Registration Link Text in Drupal Views
April 27, 2010, 10:42:22 pm

thanx. added this to 3.2 :)

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Gettting Registration Link Text in Drupal Views

This forum was archived on 2017-11-26.