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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How to find the value of 'context' to implement hook_civicrm_contactListQuery
Pages: [1]

Author Topic: How to find the value of 'context' to implement hook_civicrm_contactListQuery  (Read 431 times)

Aahar

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 3
  • CiviCRM version: 3.4 and 4.0
  • CMS version: Drupal 6.17, 6.x and Drupal 7.x
  • PHP version: 5.2
How to find the value of 'context' to implement hook_civicrm_contactListQuery
December 13, 2012, 10:43:40 pm
I want to customize the quicksearch for a custom  auto-complete contact field using hook_civicrm_contactListQuery
How to find the value of 'context' to implement hook_civicrm_contactListQuery?

Aahar

  • I post occasionally
  • **
  • Posts: 79
  • Karma: 3
  • CiviCRM version: 3.4 and 4.0
  • CMS version: Drupal 6.17, 6.x and Drupal 7.x
  • PHP version: 5.2
Re: How to find the value of 'context' to implement hook_civicrm_contactListQuery
December 13, 2012, 11:26:01 pm
Ah!
Its there in the doc
see http://wiki.civicrm.org/confluence/display/CRMDOC42/Hook+Reference#HookReference-hook_civicrm_contactListQuery

it is written:
   
"To find the context for a given contactListQuery widget, use firebug console and type in a few letters. You'll see a GET command that looks like this (and includes the context= parameter):http://drupal.demo.civicrm.org/civicrm/ajax/contactlist?context=caseview&s=ada&limit=10&timestamp=1273015964778 "

Look at the 'console' of firebug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How to find the value of 'context' to implement hook_civicrm_contactListQuery

This forum was archived on 2017-11-26.