Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benkeen committed Oct 18, 2017
1 parent 8f2c64f commit 4d61e5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion code/Fields.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ private static function getNumClientFields ()
}


private function updateClientFields ($client_field_ids, $client_id, $postdata)
private static function updateClientFields ($client_field_ids, $client_id, $postdata)
{
if (!empty($client_field_ids)) {
$settings = array();
Expand Down
6 changes: 3 additions & 3 deletions code/Module.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@ public function install($module_id)
Hooks::registerHook("template", "extended_client_fields", "admin_edit_client_settings_bottom", "", "displayFields");
Hooks::registerHook("template", "extended_client_fields", "admin_edit_view_client_map_filter_dropdown", "", "displayExtendedFieldOptions", 50, true);
Hooks::registerHook("template", "extended_client_fields", "head_bottom", "", "insertHeadJs");
Hooks::registerHook("code", "extended_client_fields", "end", "ft_admin_update_client", "adminSaveExtendedClientFields");
Hooks::registerHook("code", "extended_client_fields", "end", "FormTools\\Administrator::adminUpdateClient", "adminSaveExtendedClientFields");

// CLIENT template and code hooks
Hooks::registerHook("template", "extended_client_fields", "edit_client_main_top", "", "displayFields");
Hooks::registerHook("template", "extended_client_fields", "edit_client_main_middle", "", "displayFields");
Hooks::registerHook("template", "extended_client_fields", "edit_client_main_bottom", "", "displayFields");
Hooks::registerHook("template", "extended_client_fields", "edit_client_settings_top", "", "displayFields");
Hooks::registerHook("template", "extended_client_fields", "edit_client_settings_bottom", "", "displayFields");
Hooks::registerHook("code", "extended_client_fields", "end", "ft_update_client", "clientSaveExtendedClientFields");
Hooks::registerHook("code", "extended_client_fields", "end", "FormTools\\Clients::updateClient", "clientSaveExtendedClientFields");

// general code hooks
Hooks::registerHook("code", "extended_client_fields", "start", "ft_get_view_filter_sql", "updateViewFilterSqlPlaceholders");
Hooks::registerHook("code", "extended_client_fields", "start", "FormTools\\Views::getViewFilterSql", "updateViewFilterSqlPlaceholders");

} catch (PDOException $e) {
$success = false;
Expand Down
19 changes: 8 additions & 11 deletions module_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
array(
"hook_type" => "code",
"action_location" => "end",
"function_name" => "ft_admin_update_client",
"function_name" => "FormTools\\Administrator::adminUpdateClient",
"hook_function" => "adminSaveExtendedClientFields",
"priority" => "50"
),
Expand Down Expand Up @@ -193,14 +193,14 @@
array(
"hook_type" => "code",
"action_location" => "end",
"function_name" => "ft_update_client",
"function_name" => "FormTools\\Clients::updateClient",
"hook_function" => "clientSaveExtendedClientFields",
"priority" => "50"
),
array(
"hook_type" => "code",
"action_location" => "start",
"function_name" => "ft_get_view_filter_sql",
"function_name" => "FormTools\\Views::getViewFilterSql",
"hook_function" => "updateViewFilterSqlPlaceholders",
"priority" => "50"
)
Expand All @@ -210,21 +210,18 @@
$FILES = array(
"add.php",
"edit.php",
"global/",
"global/code/",
"global/code/fields.php",
"global/code/module.php",
"global/code/section_titles.php",
"global/scripts/",
"global/scripts/field_options.js",
"code/",
"code/Fields.class.php",
"code/Module.class.php",
"scripts/",
"scripts/field_options.js",
"help.php",
"images/",
"images/icon_extended_client_fields.gif",
"index.php",
"lang/",
"lang/en_us.php",
"library.php",
"module.php",
"module_config.php",
"smarty_plugins/",
"smarty_plugins/section_html.tpl",
Expand Down

0 comments on commit 4d61e5f

Please sign in to comment.