I would love to have an option to set a default value to any profile field, especially if it's a text field.

I tried using Rules with a registration event but a) it's not accessing any profile fields and b) it shouldn't be neccessary.

Comments

Anonymous’s picture

bump.

Anonymous’s picture

Status: Active » Closed (fixed)

Solved. hook_form_FORM_ID_alter did the trick.

int_ua’s picture

Is there an easy quick way to get form_id without printing $form?

Not without printing, but relatively easy:

 function CUSTOM_MODULE_form_alter(&$form, $form_state, $form_id) {
print_r($form_id);
}
kors4r’s picture

Solved. hook_form_FORM_ID_alter did the trick.

Can you should me an example?