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
›
xurizaemon
›
Recent Posts
xurizaemon
View
Posts
drupal_render clearing default_value ... huh?
March 24, 2010 - 10:28pm —
xurizaemon
function
augforms_wall_invite_email_form
(
$form_id
,
&
$form_state
=
NULL
)
{
$num_invites
= 5 ;
for
(
$i
= 0 ;
$i
<
$num_invites
;
$i
++
)
{
$row
=
array
(
)
;
$form
[
'invite_name_'
.
$i
]
= arr
drupal_render
fapi
Read more
Creating an Ubercart node (while cross-grading from another DB, using Batch API)
December 1, 2009 - 7:23pm —
xurizaemon
// used from Drupal's Batch API to generate a bunch of UC nodes
function
mymodule_import_create_review_node
(
&
$vehicle
)
{
global
$user
;
$node
=
new
stdClass
(
)
;
$node
-
>
title
batch api
download
node import
ubercart
Read more
Dr Favourite 1.0
November 8, 2009 - 7:32pm —
xurizaemon
Code to create a list of most-used modules on a single server -
for ii in $( mysql -s -e 'show databases' ) ; do mysql -ss -e "select name from system where filename like '%sites%modules%' and stat
dr_fave
Read more
storing CCK data via node save when creating a node
August 12, 2009 - 1:38am —
xurizaemon
<?php
$node
-
>
title
=
'Hello'
;
$node
-
>
field_year_from
[
0
]
[
'value'
]
=
'1001'
;
$node
-
>
body
=
"This review is "
.
$vehicle
[
'filename'
]
;
node_save
(
$node
)
;
?>
cck node_save
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 accessing profile info on current user
July 22, 2009 - 8:25am —
xurizaemon
/**
* detect whether the user has download credits.
user profile
Read more
accessing profile info on current user
July 22, 2009 - 8:25am —
xurizaemon
/**
* detect whether the user has download credits.
user profile
Read more