- Fix hook name mailboxes_list renamed to reserved name, use storage_folders and add an alias to deprecated hooks list
| | |
| | | $a_defaults = $a_out = array(); |
| | | |
| | | // Give plugins a chance to provide a list of folders |
| | | $data = rcmail::get_instance()->plugins->exec_hook('folders_list', |
| | | $data = rcmail::get_instance()->plugins->exec_hook('storage_folders', |
| | | array('root' => $root, 'name' => $name, 'filter' => $filter, 'mode' => 'LSUB')); |
| | | |
| | | if (isset($data['folders'])) { |
| | |
| | | } |
| | | |
| | | // Give plugins a chance to provide a list of folders |
| | | $data = rcmail::get_instance()->plugins->exec_hook('folders_list', |
| | | $data = rcmail::get_instance()->plugins->exec_hook('storage_folders', |
| | | array('root' => $root, 'name' => $name, 'filter' => $filter, 'mode' => 'LIST')); |
| | | |
| | | if (isset($data['folders'])) { |
| | |
| | | 'delete_identity' => 'identity_delete', |
| | | 'save_identity' => 'identity_update', |
| | | 'identity_save' => 'identity_update', |
| | | // to be removed after 0.8 |
| | | 'imap_init' => 'storage_init', |
| | | 'mailboxes_list' => 'storage_folders', |
| | | ); |
| | | |
| | | /** |