forked from lter/deims-sevilleta-custom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsevilleta.install
43 lines (36 loc) · 1.32 KB
/
sevilleta.install
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
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* Implements hook_install().
*/
function sevilleta_install() {
// Create the categories vocabulary.
$description = st('Use tags to group articles on similar topics into categories.');
$help = st('Enter a comma-separated list of words to describe your content.');
$vocabulary = (object) array(
'name' => st('Categories'),
'description' => $description,
'machine_name' => 'categories',
'help' => $help,
);
taxonomy_vocabulary_save($vocabulary);
// Create the downloads vocabulary.
$description = st('Use tags to group documents on similar topics into categories.');
$help = st('Enter a comma-separated list of words to describe your content.');
$vocabulary = (object) array(
'name' => st('Downloads'),
'description' => $description,
'machine_name' => 'downloads',
'help' => $help,
);
taxonomy_vocabulary_save($vocabulary);
// Create the Spatial Data vocabulary.
$description = st('Use tags to group spatial data on similar topics into categories.');
$help = st('Enter a comma-separated list of words to describe your content.');
$vocabulary = (object) array(
'name' => st('Spatial Data'),
'description' => $description,
'machine_name' => 'spatial_data',
'help' => $help,
);
taxonomy_vocabulary_save($vocabulary);
}