mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:05:55 +00:00
rework class system to use subdirectories
add placeholder plugin/hook system
This commit is contained in:
11
classes/plugin/example.php
Normal file
11
classes/plugin/example.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?
|
||||
class Plugin_Example extends Plugin {
|
||||
function initialize() {
|
||||
$this->add_listener('article_before');
|
||||
}
|
||||
|
||||
function article_before(&$line) {
|
||||
$line["title"] = "EXAMPLE/REPLACED:" . $line["title"];
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user