/[drupal]/contributions/modules/image_attach_default/image_attach_default.install
ViewVC logotype

Contents of /contributions/modules/image_attach_default/image_attach_default.install

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


Revision 1.1 - (show annotations) (download) (as text)
Thu Oct 30 07:18:29 2008 UTC (12 months, 3 weeks ago) by cgardner
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/x-php
Initial commit for image_attach_default module. This module will allow an administrator to set up a default image to be attached to nodes that are set up to allow image attachments.
1 <?php
2 // $Id$
3
4 /**
5 * @file image_attach_default.install
6 */
7
8 /**
9 * implementation of hook_uninstall()
10 *
11 * @return void
12 * @author Craig Gardner
13 **/
14 function image_attach_default_uninstall() {
15 $content_types = node_get_types();
16 foreach ($content_types as $name => $type) { // loop through the content types
17 if (variable_get("image_attach_{$name}_default", FALSE)) { // If the content type has a _default variable set
18 variable_del("image_attach_{$name}_default"); // delete the variable
19 } // end if (variable_get("image_attach_{$name}_default"))
20 } // end foreach ($content_types as $name => $type)
21 }

  ViewVC Help
Powered by ViewVC 1.1.2