Browse Source

Yay coding standards!

7.x-2.x
nruest 10 years ago
parent
commit
0db345a350
  1. 8
      islandora/islandora.install
  2. 13
      islandora_basic_image/islandora_basic_image.install
  3. 1
      islandora_basic_image/islandora_basic_image.module

8
islandora/islandora.install

@ -1,5 +1,10 @@
<?php
/**
* @file
* This file contains all install related hooks.
*/
/**
* Implements hook_install().
*
@ -14,6 +19,9 @@ function islandora_install() {
field_create_field($tn_field);
}
/**
* Implements hook_uninstall().
*/
function islandora_uninstall() {
$tn_field_name = 'field_tn';
field_delete_field($tn_field_name);

13
islandora_basic_image/islandora_basic_image.install

@ -1,5 +1,13 @@
<?php
/**
* @file
* This file contains all install related hooks.
*/
/**
* Implements hook_install().
*/
function islandora_basic_image_install() {
$t = get_t();
@ -38,10 +46,13 @@ function islandora_basic_image_install() {
),
);
field_create_instance($tn_field_instance);
drupal_set_message($t('Field %name was created successfully', array('%name' => $tn_field_name)));
drupal_set_message($t('Field %name was created successfully', array('%name' => $tn_field_name)));
}
}
/**
* Implements hook_uninstall().
*/
function islandora_basic_image_uninstall() {
field_delete_instance(field_info_instance('node_content', 'field_tn', 'basic_image'));
node_type_delete('basic_image');

1
islandora_basic_image/islandora_basic_image.module

@ -4,7 +4,6 @@
* @file
* This is the new Islandora Basic Image module.
*/
function islandora_basic_image_form($node, &$form_state) {
return node_content_form($node, $form_state);
}

Loading…
Cancel
Save