home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (image_module_test.module)

This example Drupal source code file (image_module_test.module) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

false, function, if, image_module_test_file_download, php, return, uri

The image_module_test.module Drupal example source code

<?php
// $Id: image_module_test.module,v 1.1 2010/08/23 09:04:57 dries Exp $

/**
 * @file
 * Provides Image module hook implementations for testing purposes.
 */

function image_module_test_file_download($uri) {
  if (variable_get('image_module_test_file_download', FALSE) == $uri) {
    return array('X-Image-Owned-By' => 'image_module_test');
  }
  return -1;
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal image_module_test.module source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.