| 21 |
'#description' => t('You are not currently logged in. In order to post this item please !login or provide the following details to register.', array('!login' => l(t('login now'), 'user/login', NULL, 'destination='. $_GET['q']))), |
'#description' => t('You are not currently logged in. In order to post this item please !login or provide the following details to register.', array('!login' => l(t('login now'), 'user/login', NULL, 'destination='. $_GET['q']))), |
| 22 |
'#weight' => variable_get('inline_registration_weight_'. $form['#node']->type, 0), |
'#weight' => variable_get('inline_registration_weight_'. $form['#node']->type, 0), |
| 23 |
); |
); |
| 24 |
$form['register']['form'] = user_register(); |
|
| 25 |
|
$user_register_form = user_register(); |
| 26 |
|
|
| 27 |
|
foreach (module_implements('form_alter') as $module) { |
| 28 |
|
$function = $module .'_form_alter'; |
| 29 |
|
$function('user_register', $user_register_form); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
$form['register']['form'] = $user_register_form; |
| 33 |
|
|
| 34 |
// Remove the user_register submit button in favor of the node submit button |
// Remove the user_register submit button in favor of the node submit button |
| 35 |
$form['register']['form']['submit'] = NULL; |
$form['register']['form']['submit'] = NULL; |