-
Notifications
You must be signed in to change notification settings - Fork 41
/
islandora_importer.api.php
40 lines (37 loc) · 1.12 KB
/
islandora_importer.api.php
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
<?php
/**
* @file
* This file documents all available hook functions to manipulate data.
*/
/**
* Hook to register importers.
*
* @return array
* An associative array mapping unique machine names to associative arrays
* containing the following keys:
* - title: A translated title,
* - class: A string containing the class name for your importer.
* Title is used as the label, and the class is one which extends
* IslandoraBatchImporter (defined in islandora_importer.inc; just
* implementing the abstract methods and using your custom "item class" should
* suffice). Please note that the class must be autoloaded.
*/
function hook_islandora_importer() {
return array(
'my_awesome_importer' => array(
'title' => t('My Awesome Importer Module'),
'class' => 'MAIM',
),
);
}
/**
* Alter hook to hide/update those available for user selection.
*
* @param array $options
* The array of options resulting from calling hook_islandora_importer().
*
* @see hook_islandora_importer()
*/
function hook_islandora_importer_alter(array &$options) {
unset($options['my_replaced_importer']);
}