aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/extension/extension_interface.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-07-13 15:44:58 +0200
committerTristan Darricau <github@nicofuma.fr>2014-07-13 18:09:34 +0200
commit519e64205a50b15efa8589901c87f5b21448993a (patch)
tree82ab03bbf7315f42857d45badd32b00a636c8c49 /phpBB/phpbb/extension/extension_interface.php
parentdd78b564e56152be559b4ec476e35698fa32e1bf (diff)
downloadforums-519e64205a50b15efa8589901c87f5b21448993a.tar
forums-519e64205a50b15efa8589901c87f5b21448993a.tar.gz
forums-519e64205a50b15efa8589901c87f5b21448993a.tar.bz2
forums-519e64205a50b15efa8589901c87f5b21448993a.tar.xz
forums-519e64205a50b15efa8589901c87f5b21448993a.zip
[ticket/12847] Allow the extensions to say if they can be enabled
PHPBB3-12847
Diffstat (limited to 'phpBB/phpbb/extension/extension_interface.php')
-rw-r--r--phpBB/phpbb/extension/extension_interface.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/phpbb/extension/extension_interface.php b/phpBB/phpbb/extension/extension_interface.php
index cc8b8be980..6a6b6adb8f 100644
--- a/phpBB/phpbb/extension/extension_interface.php
+++ b/phpBB/phpbb/extension/extension_interface.php
@@ -20,6 +20,13 @@ namespace phpbb\extension;
interface extension_interface
{
/**
+ * Indicate whether or not the extension can be enabled.
+ *
+ * @return bool
+ */
+ public function is_enableable();
+
+ /**
* enable_step is executed on enabling an extension until it returns false.
*
* Calls to this function can be made in subsequent requests, when the