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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • What is the correct way to identify userframework for Drupal/Wordpress/Jooma?
Pages: [1]

Author Topic: What is the correct way to identify userframework for Drupal/Wordpress/Jooma?  (Read 483 times)

jorich_2000

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: 2.5.14
  • MySQL version: 5.0.95
  • PHP version: 5.3.23
What is the correct way to identify userframework for Drupal/Wordpress/Jooma?
April 15, 2015, 10:23:06 pm
I am adding some Joomla specific code to https://civicrm.org/extensions/content-tokens but have found that the methd used to identify the cms framework is not working.  There seem to be two ways:

$config->userSystem->is_joomla
or
$config->userFramework=="Joomla"

The first of these appears to not work as on Joomla is_drupal, is_wordpress and is_joomla are al null.

What is the recommended way to do this?

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: What is the correct way to identify userframework for Drupal/Wordpress/Jooma?
April 15, 2015, 11:21:35 pm
the latter, I always use $config->userFramework
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • What is the correct way to identify userframework for Drupal/Wordpress/Jooma?

This forum was archived on 2017-11-26.