Skip to content

Commit

Permalink
2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
benkeen committed Nov 24, 2017
1 parent 5bd0487 commit 93916e1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
10 changes: 5 additions & 5 deletions code/Module.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class Module extends FormToolsModule
protected $author = "Ben Keen";
protected $authorEmail = "[email protected]";
protected $authorLink = "https://formtools.org";
protected $version = "2.0.0";
protected $date = "2017-11-01";
protected $version = "2.0.1";
protected $date = "2017-11-23";
protected $originLanguage = "en_us";

protected $jsFiles = array("scripts/text_override.js");
Expand Down Expand Up @@ -44,9 +44,9 @@ public function install($module_id)
return array(false, "Failed Query: " . $e->getMessage());
}

// register the hooks. This simply adds the POTENTIAL for the module to be called in those
// functions. The text_override_replace function does the job of processing the user-defined list of
// parsing rules, as entered via the UI. If there are no rules, nothing happens
// This adds the POTENTIAL for the module to be called in those functions. The text_override_replace function
// does the job of processing the user-defined list of parsing rules, as entered via the UI. If there are no
// rules, nothing happens
Hooks::registerHook("code", "text_override", "main", "FormTools\\Themes::displayPage", "replaceStrings");

return array(true, "");
Expand Down
11 changes: 2 additions & 9 deletions module_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,8 @@
array(
"hook_type" => "code",
"action_location" => "main",
"function_name" => "ft_display_page",
"hook_function" => "text_override_replace",
"priority" => "50"
),
array(
"hook_type" => "code",
"action_location" => "main",
"function_name" => "ft_display_module_page",
"hook_function" => "text_override_replace",
"function_name" => "FormTools\\Themes::displayPage",
"hook_function" => "replaceStrings",
"priority" => "50"
)
);
Expand Down
4 changes: 2 additions & 2 deletions templates/help.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{include file='modules_header.tpl'}
{ft_include file='modules_header.tpl'}

<table cellpadding="0" cellspacing="0">
<tr>
Expand All @@ -17,4 +17,4 @@
{$L.text_help}
</p>

{include file='modules_footer.tpl'}
{ft_include file='modules_footer.tpl'}
6 changes: 3 additions & 3 deletions templates/index.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{include file='modules_header.tpl'}
{ft_include file='modules_header.tpl'}

<table cellpadding="0" cellspacing="0">
<tr>
Expand All @@ -11,7 +11,7 @@
</tr>
</table>

{include file='messages.tpl'}
{ft_include file='messages.tpl'}

<div>
{$L.text_module_summary}
Expand Down Expand Up @@ -111,4 +111,4 @@
{/foreach}
</div>
{include file='modules_footer.tpl'}
{ft_include file='modules_footer.tpl'}

0 comments on commit 93916e1

Please sign in to comment.