DrupalBin
Submit Code
About
Recent Posts
message i get when running openssl s_client -connect 150.203.86.21:443
Fix for Code
Code
add_to_cart_by_sku_contents()
Fix for page.tpl.php
Page.tpl
foreach is beeing disregarded dispite variable is array. Please help. Outside Drupal it works as standalone.php file
foreach is beeing disregarded dispite variable is array inside drupal. Please help. Outside Drupal it works as standalone.php
Fix for filefield implementation in an admin page. "An HTTP error 0 occurred. /drupal/?q=filefield/ahah///"
PHP Code custom.module
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
›
sun
›
Recent Posts
sun
View
Posts
bench.php
March 10, 2012 - 10:04pm —
sun
<?php
define
(
'DRUPAL_ROOT'
,
getcwd
(
)
)
;
error_reporting
(
E_ALL
|
E_STRICT
)
;
function
no_op
(
$text
)
{
return
$text
;
}
/**
* Configuration.
*/
const ITERATIONS =
100000
;
$data
=
'te
Read more
Is // always an alias of /descendant-or-self::node()/ in all PHP versions?
January 24, 2012 - 8:18pm —
sun
<?php
$s
=
'<!DOCTYPE html>
<html>
<body>
<form>
<select id="foo">
<option>Foo</option>
</select>
<select id="bar">
<option>Bar</option>
</select>
</form>
</body>
</html>'
;
$e
=
simp
PHP testing
Read more
1 attachment
Drupal 6 equivalent of stylesheets-override[]
August 8, 2011 - 7:30pm —
sun
function
phptemplate_preprocess_page
(
&
$vars
)
{
// Override system.css with theme version, but keep its position.
// So much to stylesheets-override[] .info property being needless...
// @see
d6
Drupal 6
DrupalWTF
override
stylesheets
theme
theming
Read more
Fix for Code
July 31, 2011 - 11:17am —
sun
### USER 1 ###
Administration menu 7.x-3.0-rc1
Administration menu Toolbar style 7.x-3.0-rc1
Advanced help 7.x-1.0-beta1
Backup and Migrate 7.x-2.2
Chaos tools 7.x-1.0-rc1
CKEditor Link 7.x-1.
Read more
Code
July 31, 2011 - 11:10am —
sun
### USER 1 ###
User-Interface:
CKEditor Link 7.x-1.2-beta1
IMCE Wysiwyg API bridge 7.x-1.x-dev
Wysiwyg 7.x-2.1
Chaos Tool Suite:
Chaos tools 7.x-1.0-rc1
Media:
IMCE 7.x-1.4
Other:
Ad
Read more
ctools actions
June 29, 2011 - 1:32pm —
sun
diff --git a
/
includes
/
wizard.inc b
/
includes
/
wizard.inc
index 50cd79c..95b4931 100644
--- a
/
includes
/
wizard.inc
+++ b
/
includes
/
wizard.inc
@@
-282,11 +282,8
@@
function
ctools_wizard_wrapper
(
$form
,
Read more
Fix for Fix for Fix for Fix for Fix for Fix for Code
June 20, 2011 - 12:48pm —
sun
<?php
if
(
$rtbc_backportable_issues
>
0
)
{
review_and_commit_rtbc_backportable_issues
(
)
;
}
if
(
$critical_bugs
>
15
||
$major_bugs
>
100
)
{
fix_bugs
(
)
;
}
elseif
(
$critical_tasks
>
15
||
$maj
Read more
Fix for Fix for Fix for Fix for Code
June 20, 2011 - 12:44pm —
sun
<?php
if
(
$critical_bugs
>
15
||
$major_bugs
>
100
)
{
fix_bugs
(
)
;
}
elseif
(
$critical_tasks
>
15
||
$major_tasks
>
100
)
{
fix_bugs
(
)
;
refactor
(
)
;
}
elseif
(
$rtbc_backportable_issues
>
0
)
Read more
Exception class error + log handling
May 30, 2011 - 4:48pm —
sun
/**
* Exception class propagating the error to the originating class instance.
*
* @idea Pass the class instance in which an exception is thrown to the
* exception class, in order to have th
Exceptions
Read more
Fix for Code
April 20, 2011 - 1:11pm —
sun
<?php
// $Id: field_entity.module,v 1.1 2010/12/03 19:13:10 sun Exp $
/**
* @file
* Exposes fields as entities.
*/
function
field_entity_entity_info
(
)
{
$entities
[
'field'
]
=
array
(
Read more
Code
April 20, 2011 - 1:08pm —
sun
<?php
// $Id: field_entity.module,v 1.1 2010/12/03 19:13:10 sun Exp $
/**
* @file
* Exposes fields as entities.
*/
function
field_entity_entity_info
(
)
{
$entities
[
'field'
]
=
array
(
Read more
KISS, chx, KISS!
February 28, 2010 - 3:47pm —
sun
Index: includes/database/mysql/schema.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/database/mysql/schema.inc,v
retrieving revision
1
chx
dbtng
hack
Read more
assertWatchdog()
December 5, 2009 - 10:29pm —
sun
function
tearDown
(
)
{
// Capture any (remaining) watchdog messages.
$this
-
>
assertMollomWatchdogMessages
(
)
;
parent::
tearDown
(
)
;
}
/**
* Assert any watchdog messages based o
simpletest
Read more
Code
November 29, 2009 - 12:49pm —
sun
Index: includes/form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision
1.407
diff -u -p -r1.407 form.inc
Read more
Code
November 8, 2009 - 12:42am —
sun
@@ -
145
,
6
+
148
,
7
@@ function field_multiple_value_form
(
$fiel
'#prefix' => '<div id="' . $wrapper_id .
Read more
Code
November 7, 2009 - 3:06pm —
sun
function
&
drupal_static
(
$name
,
$default_value
=
NULL
,
$reset
=
FALSE
)
{
static
$data
=
array
(
)
,
$default
=
array
(
)
;
// If $name was passed as NULL, all variables are reset.
if
(
!
isset
(
$name
Read more
Fix for authorize.php @file comment
October 27, 2009 - 3:14pm —
sun
/**
* @file
* Administrative script for running
Read more
Code
October 18, 2009 - 6:07pm —
sun
function
filter_process_format
(
$element
)
{
global
$user
;
// Determine the form element parents and element name to use for the text
// format widget.
$parents
=
$element
[
'#parents'
]
;
Read more
Fix for Form (table) operations
October 12, 2009 - 8:45pm —
sun
Index: modules/filter/filter.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter/filter.admin.inc,v
retrieving revision
1.48
d
Read more
Form (table) operations
October 12, 2009 - 8:45pm —
sun
Index: modules
/
filter
/
filter.admin.inc
===================================================================
RCS
file
:
/
cvs
/
drupal
/
drupal
/
modules
/
filter
/
filter.admin.inc,v
retrieving revision
1.48
d
Read more
1
2
3
next ›
last »