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
unzip
Fix for This code will extract files form a zip file uploaded via a specific FileField
May 31, 2010 - 2:02am — Anonymous
<?php
function
my_unzip_nodeapi
(
&
$node
,
$op
,
$a3
=
NULL
,
$a4
=
NULL
)
{
if
(
$node
-
>
type
==
'test'
)
{
dsm
(
$node
)
;
switch
(
$op
)
{
case
'update'
:
if
(
!
is_null
(
$node
-
>
field_zi
filefield
unzip
Read more
This code will extract files form a zip file uploaded via a specific FileField
May 31, 2010 - 1:38am — Anonymous
<?php
function
my_unzip_nodeapi
(
&
$node
,
$op
,
$a3
=
NULL
,
$a4
=
NULL
)
{
if
(
$node
-
>
type
==
'test'
)
{
dsm
(
$node
)
;
switch
(
$op
)
{
case
'update'
:
if
(
!
is_null
(
$node
-
>
field_zi
filefield
unzip
Read more