DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
civicrm
civi db query fail
August 15, 2011 - 3:20pm — Anonymous
<?php
//$query = "SELECT c.display_name FROM users a, civicrm_uf_match b, civicrm_contact c WHERE a.uid='1' AND a.uid=b.uf_id AND c.id=b.contact_id";
//$query = "SELECT c.display_name FROM users
civicrm
database
Query
Read more
CiviCRM hook_user to not set an empty $_SESSION["civicrm"] for anonymous users - needed for Pressflow
January 15, 2010 - 3:33pm —
EvanDonovan
function
civicrm_user
(
$type
,
&
$edit
,
&
$user
,
$category
=
NULL
)
{
$current_user
=
$_GLOBALS
[
"user"
]
;
if
(
$current_user
-
>
uid
== 0
&&
(
arg
(
0
)
==
"user"
&&
is_numeric
(
arg
(
1
)
)
)
)
{
retur
civicrm
cookie
hack
hook_user
pressflow
session
Read more
Fix for CiviCRM hook_user to not set an empty $_SESSION["civicrm"] for anonymous users - needed for Pressflow
January 15, 2010 - 3:32pm —
EvanDonovan
function
civicrm_user
(
$type
,
&
$edit
,
&
$user
,
$category
=
NULL
)
{
$current_user
=
$_GLOBALS
[
"user"
]
;
if
(
$current_user
-
>
uid
== 0
&&
(
arg
(
0
)
==
"user"
&&
is_numeric
(
arg
(
1
)
)
)
)
{
retur
civicrm
cookie
hack
hook_user
pressflow
session
Read more
get civicrm custom field id and field details
July 29, 2009 - 1:01am —
xurizaemon
/**
*
* @TODO make this more restrictive - could return wrong result if there are
* more than one custom field with the same label
*/
function
_green_civicrm_get_custom_field
(
$label
)
civicrm
Read more
Fix for CiviCRM: Creating Newsletter Subscriber and Adding to Group
February 13, 2008 - 10:55am — Anonymous
<?php
function
bronto_add_civicrm
(
$form_values
,
$params
=
array
(
)
)
{
if
(
module_exists
(
'civicrm'
)
)
{
civicrm_initialize
(
true
)
;
require_once
'api/crm.php'
;
civicrm
Read more
CiviCRM: Creating Newsletter Subscriber and Adding to Group
February 12, 2008 - 7:50pm — Anonymous
<?php
//the function below simultaneousy adds new contacts to CiviCRM
function
bronto_add_civicrm
(
$form_values
,
$params
=
array
(
)
,
$groups
=
array
(
)
)
{
if
(
module_exists
(
'civicrm'
)
)
{
civicrm
Read more