-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBlockPartyPlugin.php
58 lines (51 loc) · 1.09 KB
/
BlockPartyPlugin.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* @package BlockParty
*/
class BlockPartyPlugin extends Omeka_Plugin_AbstractPlugin
{
protected $_hooks = array(
'install',
'uninstall',
'initialize',
'admin_head',
);
/**
* @var array Filters for the plugin.
*/
protected $_filters = array(
'exhibit_layouts'
);
public function hookInstall($args)
{
// Any install functions
}
public function hookUninstall($args)
{
// Any uninstall functions
}
public function hookInitialize($args)
{
// Any initializing functions
}
public function hookAdminHead() {
queue_css_file('block-party-admin','all');
}
public function filterExhibitLayouts($layouts)
{
$layouts['item-group'] = array(
'name' => 'Item Group',
'description' => 'Display a group of items from search parameters.'
);
$layouts['exhibit-group'] = array(
'name' => 'Exhibit Group',
'description' => 'Display a group of exhibits from search parameters.'
);
$layouts['collection-group'] = array(
'name' => 'Collection Group',
'description' => 'Display a group of collections from search parameters.'
);
return $layouts;
}
}
?>