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) »
  • Where to find $type parameter used by some hooks
Pages: [1]

Author Topic: Where to find $type parameter used by some hooks  (Read 1796 times)

AlexR

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: Drupal
  • MySQL version: 5.1.69
  • PHP version: 5.3.23
Where to find $type parameter used by some hooks
August 08, 2013, 06:56:38 am
Hooks such aclGroup http://wiki.civicrm.org/confluence/display/CRMDOC43/hook_civicrm_aclGroup pass a parameter $type. Is there a function that I can use to pull this parameter into some custom php?

My thought is that it is CRM_Core_Permission::getPermission()

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Where to find $type parameter used by some hooks
August 08, 2013, 02:54:24 pm
I think it might be 1 for view & 2 for edit or something like that
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Where to find $type parameter used by some hooks

This forum was archived on 2017-11-26.