DrupalBin
Submit Code
About
Recent Posts
Fix for Views cumulus: tag_cloud
Fix for Code
sjfgjgjfgidfgh
Code
Code
test.berniecram.com.alias.drushrc.php
Code
provision-deploy error
Create node programmatically with file
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
database
Update multiple checkboxes in a N:M relationship
September 29, 2011 - 10:11am — Anonymous
// Save the pods that were enabled for this room
// $vars['pods'] has values that come from a form postback - from a field of type checkboxes
// in the database, a room(rid) can have zero or multipl
checkboxes
database
Forms
many-to-many
multiple
one-to-many
Read more
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
Fix for my module is showing bug .. not sure why ..
October 8, 2009 - 10:46pm — Anonymous
By fkaufusi
Drupal
version
6:
function
user_access
(
$string
,
$account
=
NULL
,
$reset
=
FALSE
)
{
global
$user
;
static
$perm
=
array
(
)
;
if
(
$reset
)
{
$perm
=
array
(
)
;
}
i
database
error
module
permission
user hooks
Read more
Shell script for taking a copy of a remote database to your local machine.
May 29, 2009 - 3:58am — Anonymous
if [ $1 = "--help" ];
then
echo "
#########
# USAGE #
#########
Syntax for running this script is:
./devdb2localdb.sh sshuser sshdomain remotedatabaseuser databasename
database
linux
mysql
shell
Read more
Fix for settings.php database array for sharing profiles
May 21, 2009 - 7:41am — Anonymous
<?php
//usual local settings:
$db_url
=
'mysqli://username:password@localhost/my_drupal_db'
;
$db_prefix
=
array
(
'default'
=>
''
,
'profile_fields'
=>
'site1_'
,
database
drupal
profile
tables
Read more
settings.php database array for sharing profiles
May 21, 2009 - 7:29am — Anonymous
<?php
//usual local settings:
$db_url
=
'mysqli://username:password@localhost/my_drupal_db'
;
$db_prefix
=
array
(
'profile_fields'
=>
'site1_'
,
'profile_values'
=>
'site1_'
,
)
;
?>
database
drupal
profile
tables
database helper function for keyed array
February 28, 2009 - 9:58am — Anonymous
/**
* Database helper function: fetch the entire result set as a keyed array.
* The first field in the result becomes the keys.
database
Read more
Ignore Slave Server Patch
February 10, 2009 - 12:37am — Anonymous
/**
* Implementation of hook_comment_insert().
*/
function
comment_comment_insert
(
$comment
)
{
drupal_set_ignore_slave
(
)
;
}
/*
* Implementation of hook_comment_update().
*/
database
slave server
Read more
database benchmarks
August 19, 2008 - 2:05am — Anonymous
Settings:
block cache: disabled
optimize CSS: enabled
optimize JS: enabled
front page with one node.
HEAD:
====
Page cache: disabled
Requests per second: 9.77 [#/sec] (mean)
database
Read more
New DatabaseCondition
April 18, 2008 - 12:54am — Anonymous
class
DatabaseCondition implements QueryConditionInterface, Countable
{
protected
$conditions
=
array
(
)
;
protected
$arguments
=
array
(
)
;
protected
$updated
=
TRUE
;
database
Read more
1
2
next ›
last »