DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
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
file
Create node programmatically with file
February 6, 2012 - 4:16pm — Anonymous
<?php
$node
=
new
stdClass
(
)
;
$node
-
>
type
=
'photo'
;
node_object_prepare
(
$node
)
;
$node
-
>
language
= LANGUAGE_NONE;
$node
-
>
uid
=
$photo
-
>
client_id
;
$node
-
>
name
=
$photo
-
>
client
arjun
file
node
Read more
Fix for Fix for Send MIMEMAIL with attachment from print module
January 13, 2011 - 1:42am —
MaxWesten
$attachments[] = array(
'filepath' => 'print/234',
'filemime' => 'text/html',
'filename' => 'test.html',
'list' => TRUE,
);
mimemail($settings['from'], $recipients, $subject, $body, FALS
attachments
file
Mimemail
Read more
Fix for Send MIMEMAIL with attachment from print module
January 10, 2011 - 12:55pm —
JGonzalez
$attachments
[
]
=
array
(
'filepath'
=
>
'print/234'
,
'filemime'
=
>
'text/html'
,
'filename'
=
>
'test.html'
,
'list'
=
>
TRUE
,
)
;
mimemail
(
$settings
[
'from'
]
,
$recipients
,
$subject
,
$body
, FALS
attachments
file
Mimemail
Read more
Send MIMEMAIL with attachment from print module
January 10, 2011 - 12:44pm —
JGonzalez
$file
=
new
stdClass
(
)
;
$file
-
>
filename
=
'test.html'
;
$file
-
>
filepath
=
'print/234'
;
$file
-
>
filemime
=
'text/html'
;
mimemail
(
$settings
[
'from'
]
,
$recipients
,
$subject
,
$body
,
FALSE
,
array
(
)
, che
attachments
file
Mimemail
Read more
Count rows in a large file
December 15, 2008 - 12:54pm — Anonymous
/**
* Helper function to get the number of rows in a file. Excludes the first row
* which contains the column names.
*
* @param string $file
count
csv
file
import
rows
Read more
Migrating the ec_file module to Drupal 6
November 30, 2008 - 9:28am —
burningdog
A conversation with gordonh (lead developer of ecommerce) on irc to see about the possibility of migrating the file module to ec4 in D6, so that ec4 can sell file downloads.
ecommerce
ec_file
file
Read more
Force PDF's to save or open without the plugin
April 14, 2008 - 11:04pm — Anonymous
# Force PDF's to open without the plugin
<FilesMatch "\.(?i:pdf)$">
ForceType application/pdf
Header set Content-Disposition attachment
</FilesMatch>
attachments
file
pdf