return true;
}
-
-
-
-
-
-
-
-?>
\ No newline at end of file
+// ttPluginEnabled is used to check whether a plugin is enabled for user.
+function ttPluginEnabled($plugin)
+{
+ global $user;
+ return in_array($plugin, explode(',', $user->plugins));
+}