Daniel Lamb
10 years ago
2 changed files with 38 additions and 0 deletions
@ -0,0 +1,20 @@
|
||||
<?php |
||||
|
||||
/** |
||||
* Implements hook_install(). |
||||
* |
||||
* Defines common fields for various bundles. |
||||
*/ |
||||
function islandora_install() { |
||||
$tn_field_name = 'field_tn'; |
||||
$tn_field = array( |
||||
'field_name' => $tn_field_name, |
||||
'type' => 'image', |
||||
); |
||||
field_create_field($tn_field); |
||||
} |
||||
|
||||
function islandora_uninstall() { |
||||
$tn_field_name = 'field_tn'; |
||||
field_delete_field($tn_field_name); |
||||
} |
Loading…
Reference in new issue