X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Ffilters%2Fsetup.php;h=47e747f324b96a71392c4d1b568c910806877981;hb=30460a05016c7e066ad7b28df7788539e4054a99;hp=734386ec7d232372c0dd5832d68f1783147d9cc3;hpb=5b4ba967c2353d583ae6f010a3bf51a86febc057;p=squirrelmail.git diff --git a/plugins/filters/setup.php b/plugins/filters/setup.php index 734386ec..47e747f3 100644 --- a/plugins/filters/setup.php +++ b/plugins/filters/setup.php @@ -1,155 +1,66 @@ _("Message Filters"), - 'url' => '../plugins/filters/options.php', - 'desc' => _("Filtering enables messages with different criteria to be automatically filtered into different folders for easier organization."), - 'js' => false - ); +/** + * Called by hook to Start Filtering + * @param mixed $args optional variable passed by hook + * @access private + */ +function start_filters_hook($args) { + include_once(SM_PATH . 'plugins/filters/filters.php'); + start_filters ($args); +} - if ($AllowSpamFilters) { - $optpage_blocks[] = array( - 'name' => _("SPAM Filters"), - 'url' => '../plugins/filters/spamoptions.php', - 'desc' => _("SPAM filters allow you to select from various DNS based blacklists to detect junk email in your INBOX and move it to another folder (like Trash)."), - 'js' => false - ); - } +/** + * Called by hook to Update filters when Folders Change + * @access private + */ +function update_for_folder_hook($args) { + include_once(SM_PATH . 'plugins/filters/filters.php'); + update_for_folder ($args); } -?> \ No newline at end of file