DrupalBin
Submit Code
About
Recent Posts
Serializable closures
Closures in menu item arguments
dpr($content['field_headshot'])
Fix for Git push error
Проверка
Code
$item['title'] = $item['title'];
Loading specific field
expire give non-aliased paths
Fix for 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
drupal
Fix for Create User and insert custom field data D7
May 14, 2012 - 9:29pm — Anonymous
// Code to actually create the user object and create the new user
$account
=
new
StdClass
(
)
;
$account
-
>
is_new
=
TRUE
;
$account
-
>
status
=
TRUE
;
$account
-
>
name
=
$username
;
$account
-
>
pass
=
'
drupal
fields in core
Read more
Create User and insert custom field data D7
May 14, 2012 - 8:43pm — Anonymous
// Code to actually create the user object and create the new user
$account
=
new
StdClass
(
)
;
$account
-
>
is_new
=
TRUE
;
$account
-
>
status
=
TRUE
;
$account
-
>
name
=
$username
;
$account
-
>
pass
=
'
drupal
fields in core
Read more
Fix for Allow HTML in "node" titles for Drupal 6.x
May 7, 2012 - 10:18am — Anonymous
<?php
/*
* Created 20 Apr 2009 12:07:47 by Greg Harvey
* http://www.drupaler.co.uk
*/
function
html_titles_preprocess_page
(
&
$vars
)
{
if
(
arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
$node
6.x
drupal
html
nodes
titles
Read more
Ignition proof-of-concept
August 11, 2011 - 3:59pm — Anonymous
/*
* TODO:
*
* Review this section - this is a proof-of-concept JSON managed config
* exporter.
6.x
deployment
drupal
Read more
CTools Error with Drupal 7
April 15, 2011 - 12:25pm — Anonymous
CTools CSS Cache Unable to create
The CTools CSS cache directory, ctools
/
css could not be created due to a misconfigured files directory.
7
CSS folder error
ctools
drupal
Read more
LT initial functionality test
April 11, 2011 - 11:11am — Anonymous
<?php
// $Id$
class
LoginTobogganMiscTest
extends
DrupalWebTestCase
{
/**
* Implementation of getInfo().
*/
public
static
function
getInfo
(
)
{
return
array
(
'name'
=
>
t
(
'
6.x
drupal
logintoboggan
SimpleTests
Read more
Broken Panels hook
February 16, 2011 - 12:35pm — Anonymous
function
ignition_default_page_manager_pages
(
)
{
$pages
=
array
(
)
;
dpm
(
'here'
)
;
watchdog
(
'debug'
,
t
(
'In page manager hook'
)
)
;
// Check the include directory.
$path
=
drupal_get_path
(
'mo
6.x
drupal
hook
pages
Panels
Read more
Ctools hook
February 16, 2011 - 12:28pm — Anonymous
/**
* Implementation of hook_ctools_plugin_api().
*
* If you do this, CTools will pick up default panels pages in
* <modulename>.pages_default.inc
*/
function
ignition_ctools_plugin_api
(
$mo
6.x
api
ctools
drupal
hook
Read more
Batch API on installation
January 14, 2011 - 1:08pm — Anonymous
// IN THE .install FILE:
/**
* Implementation of hook_install().
*/
function
node_to_word_stats_install
(
)
{
// Create tables.
drupal_install_schema
(
'node_to_word_stats'
)
;
// Populate
6.x
batch api
drupal
Read more
Checkmember_user
November 19, 2010 - 6:31pm — Anonymous
<?php
function
checkmember_user
(
$op
,
&
$edit
,
&
$user
,
$category
=
null
)
{
if
(
$op
==
"insert"
||
$op
==
"update"
)
{
// clear first
db_query
(
'DELETE FROM {users_roles} WHERE uid = %d'
,
drupal
hook_user
Read more
1
2
3
4
5
6
7
8
9
next ›
last »