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) »
  • CiviCRM Views Glossary Patch
Pages: [1]

Author Topic: CiviCRM Views Glossary Patch  (Read 592 times)

JMOmandown

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.0
  • CMS version: Drupal 7
  • MySQL version: Latest
  • PHP version: Latest
CiviCRM Views Glossary Patch
March 19, 2012, 10:02:53 pm
Just trying to add the glossary functionality of views to personal campaign pages associated with an event (specifically their titles  |  The pages are set to contribution).  I have an idea how to go about this but am still fairly new to CiviCRM and finding my way around the vast amounts of code.  I have decided the addition needs to be made to civicrm\drupal\modules\views\civicrm.views.inc .  I think it would be done in something like the following fashion, as discussed with the drupal community, but can't seem to get it quite right:

Code: [Select]
//PCP Glossary
    $data['civicrm_pcp']['title'] = array(
                                                   'title' => t('Title'),
                                                   'help' => t('Title'),
                                                   'field' => array(
                                                                    'handler' => 'civicrm_handler_field_title',
                                                                    'click sortable' => TRUE,
                                                                    ),

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

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

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • CiviCRM Views Glossary Patch

This forum was archived on 2017-11-26.