Parent Directory
|
Revision Log
|
Revision Graph
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 |