starting on export feature

This commit is contained in:
2016-06-13 15:51:19 +02:00
parent 8540bd9104
commit dae8a7e610
5 changed files with 177 additions and 2 deletions

View File

@@ -20,7 +20,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
require_once __DIR__ . "/download.php";
/**
* contactimporter Plugin
*
@@ -40,6 +41,7 @@ class Plugincontactimporter extends Plugin {
*/
function init() {
$this->registerHook('server.core.settings.init.before');
$this->registerHook('server.index.load.custom');
}
/**
@@ -54,6 +56,11 @@ class Plugincontactimporter extends Plugin {
case 'server.core.settings.init.before' :
$this->injectPluginSettings($data);
break;
case 'server.index.load.custom':
if ($data['name'] == 'download_vcf') {
DownloadHandler::doDownload();
}
break;
}
}