DrupalBin
Submit Code
About
Recent Posts
Get theme path for use inside views global text fields
Code
Fix for Code
Code
Fix for filefield implementation in an admin page. "An HTTP error 0 occurred. /drupal/?q=filefield/ahah///"
Undefined index:
searching for two different taxonomy terms - get this into views (2 on D6)?
Converting D6 to D7
error on clone same as earlier error on migrate
Reordering ORDER BY elements in selectQuery query
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
›
Xano
›
Recent Posts
Xano
View
Posts
Code
December 16, 2011 - 9:50pm —
Xano
// $payment is a Payment object and it's default (init) status is NEW, then moves to PENDING, and it ends up in COMPLETED, CANCELLED or EXPIRED.
Read more
Code
November 22, 2011 - 7:30pm —
Xano
<?php
$element
[
'pmid'
]
=
array
(
'#type'
=
>
'select'
,
'#title'
=
>
isset
(
$element
[
'#title'
]
)
?
Read more
Code
October 30, 2011 - 4:18pm —
Xano
<?php
/**
* @file
* Pseudo code demonstrating the workflow of setting a payment's status.
*/
/**
* A Payment.
*/
class
Payment
{
/**
* The current payment status.
*
*
Read more
Code
September 2, 2011 - 2:59pm —
Xano
SELECT
users.uid
AS
uid
,
users.picture
AS
users_picture
,
users.name
AS
users_name
,
users.mail
AS
users_mail
,
node_users.title
AS
node_users_title
,
node_users.nid
AS
node_users_nid
Read more
Code
April 24, 2011 - 7:20pm —
Xano
/**
* Build XML from a JSON object.
*
* @param data object
* @param depth integer
* Optional integer used internally to keep track of the amount of indentation.
*
* @re
Read more
Code
April 17, 2011 - 2:53pm —
Xano
function
idealadmin_transaction_list
(
)
{
global
$pager_page_array
,
$pager_total
,
$pager_total_items
;
// Build the pager.
Read more
Code
April 7, 2011 - 8:00pm —
Xano
<?php
function
mew_item_type
(
$item
)
{
$item_types
= mew_item_types
(
)
;
$types
=
array
(
)
;
foreach
(
mew_item_types
(
)
as
$type
=
>
$title
)
{
if
(
$type
&
$item
[
'type'
]
)
{
$types
[
]
=
$t
Read more
Code
April 6, 2011 - 5:41pm —
Xano
version
:1
:debug:clean Attempting ln -sf
/
opt
/
local
/
var
/
macports
/
build
/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46
/
work
/
opt
/
local
/
var
/
macports
/
sources
/
rsync.macpo
Read more
Code
February 28, 2011 - 11:05am —
Xano
<?php
t
(
'this !is a @string'
,
array
(
'@string'
=
>
'Foobar'
,
)
)
;
// I need "this is a @string" and "@string" and I need to know these two belong together.
t
(
'this !is a @string'
,
array
(
'
Read more
Code
January 19, 2011 - 4:36pm —
Xano
<?php
function
render
(
)
{
if
(
!
$this
-
>
hidden
)
{
foreach
(
$this
-
>
pre_render_callbacks
as
$callback
)
{
call_user_func
(
$callback
,
$this
)
;
}
// Allow pre_render to ab
Read more
Code
January 14, 2011 - 7:40pm —
Xano
function
trevi_defuse_pcre
(
&
$string
,
$pattern_split
,
$pattern_match
)
{
$matches
=
preg_split
(
$pattern_split
,
$string
,
NULL
, PREG_SPLIT_DELIM_CAPTURE
|
PREG_SPLIT_OFFSET_CAPTURE
)
;
$string
=
''
;
Read more
Code
December 16, 2010 - 4:07pm —
Xano
#
# DocumentRoot: The directory out of which you will serve your
# documents.
Read more
Code
December 16, 2010 - 9:22am —
Xano
#
# This is the main Apache HTTP server configuration file.
Read more
Fix for Code
December 3, 2010 - 12:31pm —
Xano
$new
=
TRUE
;
if
(
$sequences
[
0
]
)
{
$key
=
count
(
$sequences
[
0
]
)
-
1
;
$last
=
array
(
&
$sequences
[
0
]
[
$key
]
,
&
$sequences
[
1
]
[
$key
]
)
;
if
(
$last
[
0
]
-
>
position
+
$last
[
0
]
-
Read more
Code
December 3, 2010 - 12:26pm —
Xano
if
(
$sequences
[
0
]
&&
$key
=
count
(
$sequences
[
0
]
)
- 1
&&
$last
=
array
(
&
$sequences
[
0
]
[
$key
]
,
&
$sequences
[
1
]
[
$key
]
)
&&
$last
[
0
]
-
>
position
+
$last
[
0
]
-
>
length
+ 1 ==
$i
&&
Read more
Fix for Code
November 23, 2010 - 8:04am —
Xano
Drupal.
behaviors
.
dutchGuideGmap
=
function
(
context
)
{
var
directionsService
=
new
google.
maps
.
DirectionsService
(
)
;
var
directionsDisplay
=
new
google.
maps
.
DirectionsRenderer
(
)
;
// Create th
Read more
Code
November 23, 2010 - 8:03am —
Xano
Drupal.
behaviors
.
dutchGuideGmap
=
function
(
context
)
{
var
directionsService
=
new
google.
maps
.
DirectionsService
(
)
;
var
directionsDisplay
=
new
google.
maps
.
DirectionsRenderer
(
)
;
// Create the
Read more
Code
November 19, 2010 - 6:09pm —
Xano
/**
* Perform a text review.
*
* @todo Find a way to process multiple matches for the same substring.
*
* @param $tpid
* The TPID of the review profile to use.
* @param $strings string
Read more
Code
November 19, 2010 - 3:08pm —
Xano
Process: Adium [798]
Path: /Applications/Adium.app/Contents/MacOS/Adium
Identifier: com.adiumX.adiumX
Version: 1.4.1 (1.4.1)
Code Type: X86 (Native)
Parent P
Read more
Code
November 12, 2010 - 1:29pm —
Xano
/**
* Delete a list.
*/
function
scunthorpe_form_delete
(
array
&
$form_state
, scunthorpeList
$list
)
{
$form_state
[
'storage'
]
[
'scunthorpe_list'
]
=
$list
;
$question
=
$list
-
>
type
== SCUNTHORP
Read more
1
2
3
4
5
6
7
next ›
last »