diff --git a/RockJavaScriptHooks.info.php b/RockJavaScriptHooks.info.php new file mode 100644 index 0000000..fd3228e --- /dev/null +++ b/RockJavaScriptHooks.info.php @@ -0,0 +1,11 @@ + 'RockJavaScriptHooks', + 'version' => json_decode(file_get_contents(__DIR__ . '/package.json'))->version, + 'summary' => 'Adds hooks for ProcessWire JavaScript', + // changing this will break it! + 'autoload' => 'template=admin', + 'singular' => true, + 'icon' => 'anchor', +); diff --git a/RockJavaScriptHooks.module.php b/RockJavaScriptHooks.module.php index 4d962c2..a3f106f 100644 --- a/RockJavaScriptHooks.module.php +++ b/RockJavaScriptHooks.module.php @@ -9,20 +9,6 @@ */ class RockJavaScriptHooks extends WireData implements Module { - - public static function getModuleInfo() - { - return [ - 'title' => 'RockJavaScriptHooks', - 'version' => '0.0.1', - 'summary' => 'Adds hooks for ProcessWire JavaScript', - // changing this will break it - 'autoload' => 'template=admin', - 'singular' => true, - 'icon' => 'anchor', - ]; - } - public function init() { $config = wire()->config;