1<?php 2/** 3 * setup.php 4 * 5 * Copyright (c) 1999-2006 The SquirrelMail Project Team 6 * Copyright (c) 2007 Tomas Kuliavas <tokul@users.sourceforge.net> 7 * Licensed under the GNU GPL. For full terms see the file COPYING. 8 * 9 * Uses standard plugin format to create a couple of forms to 10 * enable import/export of CSV files to/from the address book. 11 * @version $Id: setup.php,v 1.14 2007/06/09 08:38:42 tokul Exp $ 12 * @package sm-plugins 13 * @subpackage abook_import_export 14 */ 15 16/** 17 * Init plugin 18 */ 19function squirrelmail_plugin_init_abook_import_export() { 20 global $squirrelmail_plugin_hooks; 21 $squirrelmail_plugin_hooks["addressbook_bottom"]["abook_import_export"] = "abook_import_export"; 22} 23 24/** 25 * Displays plugin's version 26 * @return string version number 27 */ 28function abook_import_export_version() { 29 return '1.1'; 30} 31 32/** 33 * Adds import/export form to addresses page 34 */ 35function abook_import_export() { 36 include_once(SM_PATH . 'plugins/abook_import_export/functions.php'); 37 aie_create_form(); 38} 39