/[drupal]/contributions/modules/inline_registration/inline_registration.module
ViewVC logotype

Diff of /contributions/modules/inline_registration/inline_registration.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.1, Sat Mar 21 14:53:08 2009 UTC revision 1.1.2.2, Tue Apr 7 09:29:45 2009 UTC
# Line 21  function inline_registration_form_alter( Line 21  function inline_registration_form_alter(
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;

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.2