Skip to content

Commit

Permalink
chore: add info file
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Oct 18, 2024
1 parent 7f82aa1 commit 5bb6dc3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
11 changes: 11 additions & 0 deletions RockJavaScriptHooks.info.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

$info = array(
'title' => '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',
);
14 changes: 0 additions & 14 deletions RockJavaScriptHooks.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5bb6dc3

Please sign in to comment.