| | |
| | | // init IMAP connection |
| | | $RCMAIL->imap_connect(); |
| | | |
| | | function rcube_folder_form($attrib) |
| | | function rcmail_folder_form($attrib) |
| | | { |
| | | global $RCMAIL; |
| | | |
| | |
| | | |
| | | // Get mailbox parameters |
| | | if (strlen($mbox)) { |
| | | $options = rcube_folder_options($mbox_imap); |
| | | $options = rcmail_folder_options($mbox_imap); |
| | | $namespace = $RCMAIL->imap->get_namespace(); |
| | | |
| | | $path = explode($delimiter, $mbox_imap); |
| | |
| | | |
| | | // Allow plugins to modify folder form content |
| | | $plugin = $RCMAIL->plugins->exec_hook('folder_form', |
| | | array('form' => $form, 'options' => $options)); |
| | | array('form' => $form, 'options' => $options, |
| | | 'name' => $mbox_imap, 'parent_name' => $parent_imap)); |
| | | |
| | | $form = $plugin['form']; |
| | | |
| | |
| | | |
| | | // register UI objects |
| | | $OUTPUT->add_handlers(array( |
| | | 'folderdetails' => 'rcube_folder_form', |
| | | 'folderdetails' => 'rcmail_folder_form', |
| | | )); |
| | | |
| | | $OUTPUT->add_label('nonamewarning'); |