forked from ColdTrick/csv_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.php
26 lines (21 loc) · 839 Bytes
/
start.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
<?php
/**
* Main file for this plugin
*/
require_once(dirname(__FILE__) . '/lib/functions.php');
require_once(dirname(__FILE__) . '/lib/hooks.php');
// register default Elgg events
elgg_register_event_handler('init', 'system', 'csv_exporter_init');
/**
* Gets called when the system initializes
*
* @return void
*/
function csv_exporter_init() {
// register plugin hooks
elgg_register_plugin_hook_handler('get_exportable_values', 'csv_exporter', 'csv_exporter_get_exportable_values_hook');
elgg_register_plugin_hook_handler('export_value', 'csv_exporter', 'csv_exporter_export_value_hook');
elgg_register_plugin_hook_handler('register', 'menu:page', '\ColdTrick\CSVExporter\PageMenu::adminMenu');
// register actions
elgg_register_action('csv_exporter/download', dirname(__FILE__) . '/actions/download.php', 'admin');
}