From 68d2d541002017dae51127aa05af58d19916655b Mon Sep 17 00:00:00 2001 From: alecpl Date: Sun, 16 Jan 2011 19:42:40 +0000 Subject: - Move action files map from index.php to steps' func.inc files --- program/steps/addressbook/func.inc | 10 ++++++++++ program/steps/mail/func.inc | 15 ++++++++++++++- program/steps/settings/func.inc | 11 +++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) (limited to 'program/steps') diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index a3f04071c..e8b05edb4 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -293,3 +293,13 @@ $OUTPUT->add_handlers(array( 'recordscountdisplay' => 'rcmail_rowcount_display', 'searchform' => array($OUTPUT, 'search_form') )); + +// register action aliases +$RCMAIL->register_action_map(array( + 'add' => 'edit.inc', + 'group-create' => 'groups.inc', + 'group-rename' => 'groups.inc', + 'group-delete' => 'groups.inc', + 'group-addmembers' => 'groups.inc', + 'group-delmembers' => 'groups.inc', +)); diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index b0e7a789d..6648f7aee 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1757,4 +1757,17 @@ $OUTPUT->add_handlers(array( 'searchform' => array($OUTPUT, 'search_form'), )); - +// register action aliases +$RCMAIL->register_action_map(array( + 'preview' => 'show.inc', + 'print' => 'show.inc', + 'moveto' => 'move_del.inc', + 'delete' => 'move_del.inc', + 'send' => 'sendmail.inc', + 'expunge' => 'folders.inc', + 'purge' => 'folders.inc', + 'remove-attachment' => 'attachments.inc', + 'display-attachment' => 'attachments.inc', + 'upload' => 'attachments.inc', + 'group-expand' => 'autocomplete.inc', +)); diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index e97a26f32..9eebdbedf 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -764,3 +764,14 @@ $OUTPUT->add_handlers(array( 'identitieslist' => 'rcmail_identities_list', )); +// register action aliases +$RCMAIL->register_action_map(array( + 'folders' => 'folders.inc', + 'rename-folder' => 'folders.inc', + 'delete-folder' => 'folders.inc', + 'subscribe' => 'folders.inc', + 'unsubscribe' => 'folders.inc', + 'purge' => 'folders.inc', + 'folder-size' => 'folders.inc', + 'add-identity' => 'edit_identity.inc', +)); -- cgit v1.2.3