X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Ffilters%2Fsetup.php;h=782e1ac587bce7efa62ea514c3b19e0c33e4726d;hb=b37e457fda0baaf0253ba69f0e5cbdd4845ce242;hp=64d571299f4df34b0b1156b60f8d76569ff98cfc;hpb=b2d8bc6ca1ffbf4269c91bbe6cd73471388d935e;p=squirrelmail.git diff --git a/plugins/filters/setup.php b/plugins/filters/setup.php index 64d57129..782e1ac5 100644 --- a/plugins/filters/setup.php +++ b/plugins/filters/setup.php @@ -1,130 +1,15 @@ _("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