summaryrefslogtreecommitdiff
path: root/modules/profile/profile.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r--modules/profile/profile.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index af6d23d84..bb32b15bc 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -331,7 +331,7 @@ Unless you know what you are doing, it is highly recommended that you prefix the
/**
* Validate profile_field_form submissions.
*/
-function profile_field_form_validate($form_values, $form, &$form_state) {
+function profile_field_form_validate($form, &$form_state, $form_values) {
// Validate the 'field name':
if (preg_match('/[^a-zA-Z0-9_-]/', $form_values['name'])) {
form_set_error('name', t('The specified form name contains one or more illegal characters. Spaces or any other special characters except dash (-) and underscore (_) are not allowed.'));
@@ -367,7 +367,7 @@ function profile_field_form_validate($form_values, $form, &$form_state) {
/**
* Process profile_field_form submissions.
*/
-function profile_field_form_submit($form_values, $form, &$form_state) {
+function profile_field_form_submit($form, &$form_state, $form_values) {
if (!isset($form_values['fid'])) {
db_query("INSERT INTO {profile_fields} (title, name, explanation, category, type, weight, required, register, visibility, autocomplete, options, page) VALUES ('%s', '%s', '%s', '%s', '%s', %d, %d, %d, %d, %d, '%s', '%s')", $form_values['title'], $form_values['name'], $form_values['explanation'], $form_values['category'], $form_values['type'], $form_values['weight'], $form_values['required'], $form_values['register'], $form_values['visibility'], $form_values['autocomplete'], $form_values['options'], $form_values['page']);
@@ -407,7 +407,7 @@ function profile_field_delete($fid) {
/**
* Process a field delete form submission.
*/
-function profile_field_delete_submit($form_values, $form, &$form_state) {
+function profile_field_delete_submit($form, &$form_state, $form_values) {
db_query('DELETE FROM {profile_fields} WHERE fid = %d', $form_values['fid']);
db_query('DELETE FROM {profile_values} WHERE fid = %d', $form_values['fid']);