starting on export feature
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user