-
Notifications
You must be signed in to change notification settings - Fork 9
/
islandora_dev101.module
58 lines (52 loc) · 1.5 KB
/
islandora_dev101.module
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* @file
* Scaffolding module for the "Islandora Development 101" workshop.
*/
/**
* Implements hook_menu().
*/
function islandora_dev101_menu() {
$items = array();
$items['admin/islandora/tools/dev101'] = array(
'title' => 'Islandora Development 101 Workshop module ',
'description' => 'Configure the Islandora Dev101 module.',
'page callback' => 'drupal_get_form',
'page arguments' => array('islandora_dev101_admin_settings'),
'access arguments' => array('administer site configuration'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
/**
* Admin settings form builder.
*/
function islandora_dev101_admin_settings() {
$form['islandora_dev101_message'] = array(
'#title' => t('A message to write to log files, etc.'),
'#type' => 'textfield',
'#size' => 100,
'#default_value' => variable_get('islandora_dev101_message', 'This just happened: '),
'#description' => t("Text of a message we will use to demonstrate various things."),
'#maxlength' => 255,
);
return system_settings_form($form);
}
/**
* Implements hook_islandora_object_ingested().
*/
function islandora_dev101_islandora_object_ingested(AbstractObject $islandora_object) {
// Do something.
}
/**
* Implements hook_islandora_object_modified().
*/
function islandora_dev101_islandora_object_modified(AbstractObject $islandora_object) {
// Do something.
}
/**
* Implements hook_islandora_object_purged().
*/
function islandora_dev101_islandora_object_purged($pid) {
// Do something.
}