dear all,
please check the following:

$form['#validate'],
$forrm[account],
$form['account']['legal_agreement']
$form['account']['legal_agreement']['decision']
$form_state['input']['decision']

who can tell me where do those keys come from?

also:

'#type' => 'radios',
'#description' => t('By registering at %site-name, you agree that
at any time, we (or our surly, brutish henchmen) may enter your place of
residence and smash your belongings with a ball-peen hammer.',
array('%site-name' => variable_get('site_name', 'drupal'))),
'#default_value' => 0,
'#options' => array(t('I disagree'), t('I agree'))
);

who can tell me where do those property come from?
on what basis can i define them?

Is it a rule and where are they from?
is it convention, and where can i find the blueprint?
is it arbitary? or something else.

Regards.

Comments

qinqiu’s picture

dear all

said that alter function (eg, hook_menu_link_alter) function can be used to modify result,
but without hackcore. then i wonder where i put the alter function, if in .module file,
i think it is still hackcore.

great thanks for kind people.
thanks for help.
regards.

qinqiu’s picture

hook_user_login(&$edit, $account)

who can tell me where $edit come from and the meaning and content of it?

Thanks a lot

qinqiu’s picture

hook_user_view_alter(&$build)

who can tell me where $build come from and meaning and content of it?

thank you a million times.
thanks.
Regards.