Skip to content

Commit 4d61e5f

Browse files
committed
2.0.0
1 parent 8f2c64f commit 4d61e5f

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

code/Fields.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ private static function getNumClientFields ()
690690
}
691691

692692

693-
private function updateClientFields ($client_field_ids, $client_id, $postdata)
693+
private static function updateClientFields ($client_field_ids, $client_id, $postdata)
694694
{
695695
if (!empty($client_field_ids)) {
696696
$settings = array();

code/Module.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ public function install($module_id)
8585
Hooks::registerHook("template", "extended_client_fields", "admin_edit_client_settings_bottom", "", "displayFields");
8686
Hooks::registerHook("template", "extended_client_fields", "admin_edit_view_client_map_filter_dropdown", "", "displayExtendedFieldOptions", 50, true);
8787
Hooks::registerHook("template", "extended_client_fields", "head_bottom", "", "insertHeadJs");
88-
Hooks::registerHook("code", "extended_client_fields", "end", "ft_admin_update_client", "adminSaveExtendedClientFields");
88+
Hooks::registerHook("code", "extended_client_fields", "end", "FormTools\\Administrator::adminUpdateClient", "adminSaveExtendedClientFields");
8989

9090
// CLIENT template and code hooks
9191
Hooks::registerHook("template", "extended_client_fields", "edit_client_main_top", "", "displayFields");
9292
Hooks::registerHook("template", "extended_client_fields", "edit_client_main_middle", "", "displayFields");
9393
Hooks::registerHook("template", "extended_client_fields", "edit_client_main_bottom", "", "displayFields");
9494
Hooks::registerHook("template", "extended_client_fields", "edit_client_settings_top", "", "displayFields");
9595
Hooks::registerHook("template", "extended_client_fields", "edit_client_settings_bottom", "", "displayFields");
96-
Hooks::registerHook("code", "extended_client_fields", "end", "ft_update_client", "clientSaveExtendedClientFields");
96+
Hooks::registerHook("code", "extended_client_fields", "end", "FormTools\\Clients::updateClient", "clientSaveExtendedClientFields");
9797

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

101101
} catch (PDOException $e) {
102102
$success = false;

module_config.php

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
array(
152152
"hook_type" => "code",
153153
"action_location" => "end",
154-
"function_name" => "ft_admin_update_client",
154+
"function_name" => "FormTools\\Administrator::adminUpdateClient",
155155
"hook_function" => "adminSaveExtendedClientFields",
156156
"priority" => "50"
157157
),
@@ -193,14 +193,14 @@
193193
array(
194194
"hook_type" => "code",
195195
"action_location" => "end",
196-
"function_name" => "ft_update_client",
196+
"function_name" => "FormTools\\Clients::updateClient",
197197
"hook_function" => "clientSaveExtendedClientFields",
198198
"priority" => "50"
199199
),
200200
array(
201201
"hook_type" => "code",
202202
"action_location" => "start",
203-
"function_name" => "ft_get_view_filter_sql",
203+
"function_name" => "FormTools\\Views::getViewFilterSql",
204204
"hook_function" => "updateViewFilterSqlPlaceholders",
205205
"priority" => "50"
206206
)
@@ -210,21 +210,18 @@
210210
$FILES = array(
211211
"add.php",
212212
"edit.php",
213-
"global/",
214-
"global/code/",
215-
"global/code/fields.php",
216-
"global/code/module.php",
217-
"global/code/section_titles.php",
218-
"global/scripts/",
219-
"global/scripts/field_options.js",
213+
"code/",
214+
"code/Fields.class.php",
215+
"code/Module.class.php",
216+
"scripts/",
217+
"scripts/field_options.js",
220218
"help.php",
221219
"images/",
222220
"images/icon_extended_client_fields.gif",
223221
"index.php",
224222
"lang/",
225223
"lang/en_us.php",
226224
"library.php",
227-
"module.php",
228225
"module_config.php",
229226
"smarty_plugins/",
230227
"smarty_plugins/section_html.tpl",

0 commit comments

Comments
 (0)