/[drupal]/contributions/modules/zoomify/zoomify_image.module
ViewVC logotype

Contents of /contributions/modules/zoomify/zoomify_image.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Jan 9 20:50:11 2008 UTC (22 months, 2 weeks ago) by kratib
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
Significant changes in file handling
1 <?php
2 // $Id$
3
4 function zoomify_image_images($node) {
5 if (!$node->type == 'image') return null;
6 $filepath = $node->images[IMAGE_ORIGINAL];
7 if (empty($filepath)) return null;
8 $fid = db_result(db_query('SELECT fid FROM {files} WHERE nid=%d AND filename="_original" AND filepath="%s"', $node->nid, $filepath));
9 return array($fid => $filepath);
10 }
11

  ViewVC Help
Powered by ViewVC 1.1.2