Thursday, January 13, 2011

Maxi Mounds Tity Milk

computed field and md5 hash file

md5 hash file - computed field
http://www.onyxbits.de/content/adding-automatic-md5-or-sha1-checksum-calculations-file-downloads- drupal

date functions
http://www.php.net/manual/en/function.strtotime.php

computed field
http://idcminnovations.com/article/drupal-pages-and- views-CCK-computed-field

Reference to CCK field from a different content type
http://drupal.org/node/290443

my code: $
mia_data = strtotime ('+7 days', strtotime ($ node-> field_inizio_pubblicazione [0] ['value'])); $
node_field [0] [' value '] = date (' d / m / Y ', $ mia_data)

hash of a file filefield: $
node_field [0] ['value'] = md5_file ($ node-> field_documento_allegato [0] ['filepath']);

0 comments:

Post a Comment