Browse Source

Added integration hooks for knownInts and knownFloats

Added integration hooks for knownInts and knownFloats, both are used in
order to know what profile fields are numbers and be able to update
them as such.

/Sources/Subs.php: integrate_known_numbers
Nicolas Bonet 12 years ago
parent
commit
56e704f7eb
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Sources/Subs.php

+ 3 - 0
Sources/Subs.php

@@ -341,6 +341,9 @@ function updateMemberData($members, $data)
 	$knownFloats = array(
 		'time_offset',
 	);
+	
+	// Allow mods access for knownInts and knownFloats
+	call_integration_hook('integrate_known_numbers', array(&$knownInts, &$knownFloats));
 
 	$setString = '';
 	foreach ($data as $var => $val)