| | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2010, The Roundcube Dev Team | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | | | See the README file for a full license statement. | |
| | | | | |
| | | | PURPOSE: | |
| | | | Create/delete/rename contact groups and assign/remove contacts | |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | | Author: Thomas Bruederli <roundcube@gmail.com> | |
| | | +-----------------------------------------------------------------------+ |
| | | |
| | | $Id$ |
| | | |
| | | */ |
| | | |
| | | $source = get_input_value('_source', RCUBE_INPUT_GPC); |
| | |
| | | |
| | | if ($result) |
| | | $OUTPUT->show_message('contactaddedtogroup'); |
| | | else |
| | | else if ($plugin['abort'] || $CONTACTS->get_error()) |
| | | $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsaving', 'error'); |
| | | else |
| | | $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'nogroupassignmentschanged'); |
| | | } |
| | | } |
| | | |
| | |
| | | else |
| | | $result = $plugin['result']; |
| | | |
| | | if ($result) |
| | | if ($result){ |
| | | $OUTPUT->show_message('contactremovedfromgroup'); |
| | | else |
| | | $OUTPUT->command('remove_group_contacts',array('source' => $source, 'gid' => $gid)); |
| | | }else{ |
| | | $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'errorsaving', 'error'); |
| | | } |
| | | } |
| | | } |
| | | |