summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehan-Guillaume (ioguix) de Rorthais2012-08-17 12:37:59 +0000
committerJehan-Guillaume (ioguix) de Rorthais2012-08-22 10:39:00 +0000
commitb217f8b783c8b7db14f7d6ccbb276ac2179f2dbf (patch)
treec0154910ff5e785d7009256ed47f51110c4796b5
parent619f948d52c7fb2007072bef7af8627c5bdb0c25 (diff)
Add icon(...) ùethod to the Plugin class
Helps keeping the code clean and comprehensive to access icon from plugins
-rw-r--r--classes/Plugin.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/Plugin.php b/classes/Plugin.php
index 8072d121..5806d311 100644
--- a/classes/Plugin.php
+++ b/classes/Plugin.php
@@ -39,5 +39,9 @@ abstract class Plugin {
function get_name() {
return $this->name;
}
+
+ function icon($img) {
+ return array($this->name, $img);
+ }
}
?>