- Fix hook name mailboxes_list renamed to reserved name, use storage_folders and add an alias to deprecated hooks list

pull/1/head
alecpl 13 years ago
parent 43d98b244c
commit b3ad480bbc

@ -2508,7 +2508,7 @@ class rcube_imap extends rcube_storage
$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'])) {
@ -2594,7 +2594,7 @@ class rcube_imap extends rcube_storage
}
// 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'])) {

@ -74,7 +74,9 @@ class rcube_plugin_api
'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',
);
/**

Loading…
Cancel
Save