-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvsite.module
More file actions
40 lines (35 loc) · 843 Bytes
/
vsite.module
File metadata and controls
40 lines (35 loc) · 843 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
32
33
34
35
36
37
38
39
40
<?php
/**
* Implementation of hook_ctools_plugin_api().
*/
function vsite_ctools_plugin_api($module, $api) {
if ($module == "vsite" && $api == "vsite") {
return array("version" => 2);
}
else if ($module == 'vsite' && $api == 'plugins') {
return array('version' => 2);
}
}
/**
* Implementation of hook spaces_plugins
*/
function vsite_spaces_plugins() {
$plugins = array();
$plugins['vsite'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'vsite') .'/plugins',
'file' => 'vsite.inc',
'class' => 'vsite',
'parent' => 'space_og',
),
);
return $plugins;
}
/**
* Alter the registry to replace spaces_og with vsite
*/
function vsite_spaces_registry_alter(&$registry){
if (isset($registry['types']['og'])) {
$registry['types']['og']['plugin'] = 'vsite';
}
}