Hot answers tagged

1

You need to have the allowed values settings in the following format: allowed_values: - value: '1' label: A - value: '2' label: 'Bb' - value: '3' label: Ccccc The quotes don't matter for single word strings. I hope this helps.


1

You can solve this by implementing hook_form_alter, something like this; function MY_MODULE_form_alter(&$form, $form_state, $form_id) { if ($form_id == 'user_form') { $form['#validate'][] = 'my_module_user_login_validate'; } } function my_module_user_login_validate(&$form, $form_state) { //Do something... }


1

This is taken from the funciton description This hook is primarily intended for modules that want to store properties in the serialized {users}.data column, which is automatically loaded whenever a user account object is loaded, modules may add to $edit['data'] in order to have their data serialized on save. Then I think that you should do like this, to ...


Only top voted, non community-wiki answers of a minimum length are eligible