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) »
  • Setting Drupal field defaults to Civi data?
Pages: [1]

Author Topic: Setting Drupal field defaults to Civi data?  (Read 741 times)

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Setting Drupal field defaults to Civi data?
September 04, 2010, 05:15:29 pm
Hi there,

I'm wondering how we can set drupal field defaults to fill with civi data on the current user if its available. As you'll probably know if you use drupal, its possible to use PHP to set the default for a field, and as we use drupal content types as data capture, I'm wondering how I can pull the user data into these fields, using the php space.

I'm presuming (possibly quite wrongly!) its quite simple to call "Telephone No. of logged in contact" for example with a php snippet using the API?

Thanks,

Adam

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: Setting Drupal field defaults to Civi data?
September 04, 2010, 07:15:44 pm

yes, use the API

http://wiki.civicrm.org/confluence/display/CRMDOC32/API+Overview

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) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Setting Drupal field defaults to Civi data?

This forum was archived on 2017-11-26.