|
@@ -4535,21 +4535,6 @@ function api_number_of_plugins($location) {
|
|
|
return isset($_plugins[$location]) && is_array($_plugins[$location]) ? count($_plugins[$location]) : 0;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * Checks to see wether a certain plugin is installed.
|
|
|
- * @return boolean true if the plugin is installed, false otherwise.
|
|
|
- */
|
|
|
-function api_is_plugin_installed($plugin_list, $plugin_name) {
|
|
|
- if (is_array($plugin_list)) {
|
|
|
- foreach ($plugin_list as $plugin_location) {
|
|
|
- if (array_search($plugin_name, $plugin_location) !== false) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- return false;
|
|
|
-}
|
|
|
-
|
|
|
/**
|
|
|
* Transforms a number of seconds in hh:mm:ss format
|
|
|
* @author Julian Prud'homme
|