mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
Add a feed_before_insert hook
See https://github.com/FreshRSS/FreshRSS/issues/252
This commit is contained in:
@@ -138,6 +138,12 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
|
||||
$feed->_category($cat);
|
||||
$feed->_httpAuth($http_auth);
|
||||
|
||||
// Call the extension hook
|
||||
$feed = Minz_ExtensionManager::callHook('feed_before_insert', $feed);
|
||||
if (is_null($feed)) {
|
||||
Minz_Request::bad(_t('feed_not_added', $feed->name()), $url_redirect);
|
||||
}
|
||||
|
||||
$values = array(
|
||||
'url' => $feed->url(),
|
||||
'category' => $feed->category(),
|
||||
|
||||
Reference in New Issue
Block a user