forked from chnm/scripto-drupal-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripto.install
More file actions
31 lines (28 loc) · 719 Bytes
/
scripto.install
File metadata and controls
31 lines (28 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* @file
* Install, update, and uninstall functions for the scripto module.
*/
/**
* Implements hook_install().
*/
function scripto_install() {
// Create the scripto_transcription field.
$field = array(
'field_name' => 'scripto_transcription',
'type' => 'text_with_summary',
'entity_types' => array('node'),
'locked' => true,
);
field_create_field($field);
}
/**
* Implements hook_uninstall().
*/
function scripto_uninstall() {
variable_del('scripto_zend_framework_path');
variable_del('scripto_mediawiki_api_url');
variable_del('scripto_node_types');
// Delete the Scripto transcription field and all its instances.
field_delete_field('scripto_transcription');
}