Advertisement
emcniece

Drupal AJAX Login/Register bug node 1971196

Apr 15th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 18.21 KB | None | 0 0
  1. // http://drupal.org/node/1971196
  2. <pre>Array
  3. (
  4.     [#validate] =&gt; Array
  5.        (
  6.             [0] =&gt; logintoboggan_user_login_validate
  7.             [1] =&gt; user_login_name_validate
  8.             [2] =&gt; user_login_authenticate_validate
  9.             [3] =&gt; user_login_final_validate
  10.         )
  11.  
  12.     [#form_id] =&gt; user_login
  13.    [#type] =&gt; form
  14.    [#build_id] =&gt; form-wfFwqD9S4QUZnuRoflBbLNVhSbfGDZ55Ex_GPnbUSic
  15.    [#id] =&gt; user-login
  16.    [#method] =&gt; post
  17.    [#action] =&gt; /user/register
  18.    [#theme_wrappers] =&gt; Array
  19.        (
  20.             [0] =&gt; form
  21.             [1] =&gt; ajax_register_wrapper
  22.         )
  23.  
  24.     [#tree] =&gt;
  25.    [#parents] =&gt; Array
  26.        (
  27.         )
  28.  
  29.     [#submit] =&gt; Array
  30.        (
  31.             [0] =&gt; user_login_submit
  32.         )
  33.  
  34.     [#theme] =&gt; Array
  35.        (
  36.             [0] =&gt; user_login
  37.         )
  38.  
  39.     [#after_build] =&gt; Array
  40.        (
  41.             [0] =&gt; context_form_alter_node_after_build
  42.         )
  43.  
  44.     [#prefix] =&gt; <h2>Join the party!</h2>
  45.    [#processed] =&gt;
  46.    [#defaults_loaded] =&gt; 1
  47.    [#required] =&gt;
  48.    [#attributes] =&gt; Array
  49.        (
  50.         )
  51.  
  52.     [#title_display] =&gt; before
  53.    [#array_parents] =&gt; Array
  54.        (
  55.         )
  56.  
  57.     [#after_build_done] =&gt; 1
  58.    [#attached] =&gt; Array
  59.        (
  60.             [js] =&gt; Array
  61.                 (
  62.                     [0] =&gt; sites/all/modules/logintoboggan/logintoboggan.unifiedlogin.js
  63.                     [1] =&gt; Array
  64.                         (
  65.                             [data] =&gt; Array
  66.                                 (
  67.                                     [LoginToboggan] =&gt; Array
  68.                                         (
  69.                                             [unifiedLoginActiveForm] =&gt; register
  70.                                         )
  71.  
  72.                                 )
  73.  
  74.                             [type] =&gt; setting
  75.                         )
  76.  
  77.                 )
  78.  
  79.         )
  80.  
  81.     [message] =&gt; Array
  82.         (
  83.             [#markup] =&gt;
  84.            [#weight] =&gt; -50
  85.            [#tree] =&gt;
  86.            [#parents] =&gt; Array
  87.                (
  88.                     [0] =&gt; message
  89.                 )
  90.  
  91.             [#array_parents] =&gt; Array
  92.                (
  93.                     [0] =&gt; message
  94.                 )
  95.  
  96.             [#processed] =&gt;
  97.            [#required] =&gt;
  98.            [#attributes] =&gt; Array
  99.                (
  100.                 )
  101.  
  102.             [#title_display] =&gt; before
  103.            [#id] =&gt; edit-message
  104.            [#sorted] =&gt; 1
  105.            [#type] =&gt; markup
  106.            [#pre_render] =&gt; Array
  107.                (
  108.                     [0] =&gt; drupal_pre_render_markup
  109.                     [1] =&gt; ctools_dependent_pre_render
  110.                 )
  111.  
  112.             [#children] =&gt;
  113.            [#printed] =&gt; 1
  114.        )
  115.  
  116.     [name] =&gt; Array
  117.         (
  118.             [#type] =&gt; textfield
  119.            [#title] =&gt; Username or e-mail address
  120.            [#size] =&gt; 30
  121.            [#maxlength] =&gt; 60
  122.            [#required] =&gt; 1
  123.            [#description] =&gt; You may login with either your assigned username or your e-mail address.
  124.            [#input] =&gt; 1
  125.            [#autocomplete_path] =&gt;
  126.            [#process] =&gt; Array
  127.                (
  128.                     [0] =&gt; ajax_process_form
  129.                     [1] =&gt; elements_process_placeholder
  130.                     [2] =&gt; elements_process_pattern
  131.                 )
  132.  
  133.             [#theme] =&gt; textfield
  134.            [#theme_wrappers] =&gt; Array
  135.                (
  136.                     [0] =&gt; form_element
  137.                 )
  138.  
  139.             [#pre_render] =&gt; Array
  140.                (
  141.                     [0] =&gt; ctools_dependent_pre_render
  142.                     [1] =&gt; jquery_placeholder_pre_render_element_enable
  143.                 )
  144.  
  145.             [#defaults_loaded] =&gt; 1
  146.            [#tree] =&gt;
  147.            [#parents] =&gt; Array
  148.                (
  149.                     [0] =&gt; name
  150.                 )
  151.  
  152.             [#array_parents] =&gt; Array
  153.                (
  154.                     [0] =&gt; name
  155.                 )
  156.  
  157.             [#weight] =&gt; 0
  158.            [#processed] =&gt; 1
  159.            [#attributes] =&gt; Array
  160.                (
  161.                 )
  162.  
  163.             [#title_display] =&gt; before
  164.            [#id] =&gt; edit-name
  165.            [#name] =&gt; name
  166.            [#value] =&gt;
  167.            [#ajax_processed] =&gt;
  168.            [#sorted] =&gt; 1
  169.            [#children] =&gt; <div class="form-item form-type-textfield form-item-name">
  170.  <label for="edit-name">Username or e-mail address <span class="form-required" title="This field is required.">*</span></label>
  171.  <input type="text" id="edit-name" name="name" value="" size="30" maxlength="60" class="form-text required">
  172. <div class="description">You may login with either your assigned username or your e-mail address.</div>
  173. </div>
  174.  
  175.             [#printed] =&gt; 1
  176.        )
  177.  
  178.     [pass] =&gt; Array
  179.         (
  180.             [#type] =&gt; password
  181.            [#title] =&gt; Password
  182.            [#description] =&gt; The password field is case sensitive.
  183.            [#required] =&gt; 1
  184.            [#size] =&gt; 30
  185.            [#input] =&gt; 1
  186.            [#maxlength] =&gt; 128
  187.            [#process] =&gt; Array
  188.                (
  189.                     [0] =&gt; ajax_process_form
  190.                     [1] =&gt; elements_process_placeholder
  191.                     [2] =&gt; elements_process_pattern
  192.                 )
  193.  
  194.             [#theme] =&gt; password
  195.            [#theme_wrappers] =&gt; Array
  196.                (
  197.                     [0] =&gt; form_element
  198.                 )
  199.  
  200.             [#pre_render] =&gt; Array
  201.                (
  202.                     [0] =&gt; jquery_placeholder_pre_render_element_enable
  203.                 )
  204.  
  205.             [#defaults_loaded] =&gt; 1
  206.            [#tree] =&gt;
  207.            [#parents] =&gt; Array
  208.                (
  209.                     [0] =&gt; pass
  210.                 )
  211.  
  212.             [#array_parents] =&gt; Array
  213.                (
  214.                     [0] =&gt; pass
  215.                 )
  216.  
  217.             [#weight] =&gt; 0.001
  218.            [#processed] =&gt; 1
  219.            [#attributes] =&gt; Array
  220.                (
  221.                 )
  222.  
  223.             [#title_display] =&gt; before
  224.            [#id] =&gt; edit-pass
  225.            [#name] =&gt; pass
  226.            [#value] =&gt;
  227.            [#ajax_processed] =&gt;
  228.            [#sorted] =&gt; 1
  229.            [#children] =&gt; <div class="form-item form-type-password form-item-pass">
  230.  <label for="edit-pass">Password <span class="form-required" title="This field is required.">*</span></label>
  231.  <input type="password" id="edit-pass" name="pass" size="30" maxlength="128" class="form-text required">
  232. <div class="description">The password field is case sensitive.</div>
  233. </div>
  234.  
  235.             [#printed] =&gt; 1
  236.        )
  237.  
  238.     [form_build_id] =&gt; Array
  239.         (
  240.             [#type] =&gt; hidden
  241.            [#value] =&gt; form-wfFwqD9S4QUZnuRoflBbLNVhSbfGDZ55Ex_GPnbUSic
  242.            [#id] =&gt; form-wfFwqD9S4QUZnuRoflBbLNVhSbfGDZ55Ex_GPnbUSic
  243.            [#name] =&gt; form_build_id
  244.            [#parents] =&gt; Array
  245.                (
  246.                     [0] =&gt; form_build_id
  247.                 )
  248.  
  249.             [#input] =&gt; 1
  250.            [#process] =&gt; Array
  251.                (
  252.                     [0] =&gt; ajax_process_form
  253.                 )
  254.  
  255.             [#theme] =&gt; hidden
  256.            [#pre_render] =&gt; Array
  257.                (
  258.                     [0] =&gt; jquery_placeholder_pre_render_element_enable
  259.                 )
  260.  
  261.             [#defaults_loaded] =&gt; 1
  262.            [#tree] =&gt;
  263.            [#array_parents] =&gt; Array
  264.                (
  265.                     [0] =&gt; form_build_id
  266.                 )
  267.  
  268.             [#weight] =&gt; 0.003
  269.            [#processed] =&gt; 1
  270.            [#required] =&gt;
  271.            [#attributes] =&gt; Array
  272.                (
  273.                 )
  274.  
  275.             [#title_display] =&gt; before
  276.            [#ajax_processed] =&gt;
  277.            [#sorted] =&gt; 1
  278.            [#children] =&gt; <input type="hidden" name="form_build_id" value="form-wfFwqD9S4QUZnuRoflBbLNVhSbfGDZ55Ex_GPnbUSic">
  279.  
  280.             [#printed] =&gt; 1
  281.        )
  282.  
  283.     [form_id] =&gt; Array
  284.         (
  285.             [#type] =&gt; hidden
  286.            [#value] =&gt; user_login
  287.            [#id] =&gt; edit-user-login
  288.            [#parents] =&gt; Array
  289.                (
  290.                     [0] =&gt; form_id
  291.                 )
  292.  
  293.             [#input] =&gt; 1
  294.            [#process] =&gt; Array
  295.                (
  296.                     [0] =&gt; ajax_process_form
  297.                 )
  298.  
  299.             [#theme] =&gt; hidden
  300.            [#pre_render] =&gt; Array
  301.                (
  302.                     [0] =&gt; jquery_placeholder_pre_render_element_enable
  303.                 )
  304.  
  305.             [#defaults_loaded] =&gt; 1
  306.            [#tree] =&gt;
  307.            [#array_parents] =&gt; Array
  308.                (
  309.                     [0] =&gt; form_id
  310.                 )
  311.  
  312.             [#weight] =&gt; 0.004
  313.            [#processed] =&gt; 1
  314.            [#required] =&gt;
  315.            [#attributes] =&gt; Array
  316.                (
  317.                 )
  318.  
  319.             [#title_display] =&gt; before
  320.            [#name] =&gt; form_id
  321.            [#ajax_processed] =&gt;
  322.            [#sorted] =&gt; 1
  323.            [#children] =&gt; <input type="hidden" name="form_id" value="user_login">
  324.  
  325.             [#printed] =&gt; 1
  326.        )
  327.  
  328.     [lost_password] =&gt; Array
  329.         (
  330.             [#markup] =&gt; <div class="login-forgot"><a href="/user/password">Request new password</a></div>
  331.            [#tree] =&gt;
  332.            [#parents] =&gt; Array
  333.                (
  334.                     [0] =&gt; lost_password
  335.                 )
  336.  
  337.             [#array_parents] =&gt; Array
  338.                (
  339.                     [0] =&gt; lost_password
  340.                 )
  341.  
  342.             [#weight] =&gt; 0.006
  343.            [#processed] =&gt;
  344.            [#required] =&gt;
  345.            [#attributes] =&gt; Array
  346.                (
  347.                 )
  348.  
  349.             [#title_display] =&gt; before
  350.            [#id] =&gt; edit-lost-password
  351.            [#sorted] =&gt; 1
  352.            [#type] =&gt; markup
  353.            [#pre_render] =&gt; Array
  354.                (
  355.                     [0] =&gt; drupal_pre_render_markup
  356.                     [1] =&gt; ctools_dependent_pre_render
  357.                 )
  358.  
  359.             [#children] =&gt; <div class="login-forgot"><a href="/user/password">Request new password</a></div>
  360.            [#printed] =&gt; 1
  361.        )
  362.  
  363.     [actions] =&gt; Array
  364.         (
  365.             [#type] =&gt; actions
  366.            [submit] =&gt; Array
  367.                 (
  368.                     [#type] =&gt; submit
  369.                    [#value] =&gt; Log in
  370.                    [#ajax] =&gt; Array
  371.                        (
  372.                             [callback] =&gt; ajax_register_user_login_ajax_callback
  373.                             [wrapper] =&gt; ajax-register-user-login-wrapper
  374.                             [event] =&gt; click
  375.                         )
  376.  
  377.                     [#attributes] =&gt; Array
  378.                        (
  379.                             [class] =&gt; Array
  380.                                 (
  381.                                     [0] =&gt; ctools-modal-ctools-ajax-register-style
  382.                                 )
  383.  
  384.                         )
  385.  
  386.                     [#input] =&gt; 1
  387.                    [#name] =&gt; op
  388.                    [#button_type] =&gt; submit
  389.                    [#executes_submit_callback] =&gt; 1
  390.                    [#limit_validation_errors] =&gt;
  391.                    [#process] =&gt; Array
  392.                        (
  393.                             [0] =&gt; ajax_process_form
  394.                         )
  395.  
  396.                     [#theme_wrappers] =&gt; Array
  397.                        (
  398.                             [0] =&gt; button
  399.                         )
  400.  
  401.                     [#pre_render] =&gt; Array
  402.                        (
  403.                             [0] =&gt; jquery_placeholder_pre_render_element_enable
  404.                         )
  405.  
  406.                     [#defaults_loaded] =&gt; 1
  407.                    [#tree] =&gt;
  408.                    [#parents] =&gt; Array
  409.                        (
  410.                             [0] =&gt; submit
  411.                         )
  412.  
  413.                     [#array_parents] =&gt; Array
  414.                        (
  415.                             [0] =&gt; actions
  416.                             [1] =&gt; submit
  417.                         )
  418.  
  419.                     [#weight] =&gt; 0
  420.                    [#processed] =&gt; 1
  421.                    [#required] =&gt;
  422.                    [#title_display] =&gt; before
  423.                    [#id] =&gt; edit-submit
  424.                    [#ajax_processed] =&gt; 1
  425.                    [#attached] =&gt; Array
  426.                        (
  427.                             [library] =&gt; Array
  428.                                 (
  429.                                     [0] =&gt; Array
  430.                                         (
  431.                                             [0] =&gt; system
  432.                                             [1] =&gt; jquery.form
  433.                                         )
  434.  
  435.                                     [1] =&gt; Array
  436.                                         (
  437.                                             [0] =&gt; system
  438.                                             [1] =&gt; drupal.ajax
  439.                                         )
  440.  
  441.                                 )
  442.  
  443.                             [js] =&gt; Array
  444.                                 (
  445.                                     [0] =&gt; Array
  446.                                         (
  447.                                             [type] =&gt; setting
  448.                                             [data] =&gt; Array
  449.                                                 (
  450.                                                     [ajax] =&gt; Array
  451.                                                         (
  452.                                                             [edit-submit] =&gt; Array
  453.                                                                 (
  454.                                                                     [callback] =&gt; ajax_register_user_login_ajax_callback
  455.                                                                     [wrapper] =&gt; ajax-register-user-login-wrapper
  456.                                                                     [event] =&gt; click
  457.                                                                     [url] =&gt; /system/ajax
  458.                                                                     [submit] =&gt; Array
  459.                                                                         (
  460.                                                                             [_triggering_element_name] =&gt; op
  461.                                                                             [_triggering_element_value] =&gt; Log in
  462.                                                                         )
  463.  
  464.                                                                 )
  465.  
  466.                                                         )
  467.  
  468.                                                 )
  469.  
  470.                                         )
  471.  
  472.                                 )
  473.  
  474.                         )
  475.  
  476.                     [#sorted] =&gt; 1
  477.                    [#children] =&gt; <input class="ctools-modal-ctools-ajax-register-style form-submit ajax-processed" type="submit" id="edit-submit" name="op" value="Log in">
  478.                    [#printed] =&gt; 1
  479.                )
  480.  
  481.             [#theme_wrappers] =&gt; Array
  482.                (
  483.                     [0] =&gt; container
  484.                 )
  485.  
  486.             [#process] =&gt; Array
  487.                (
  488.                     [0] =&gt; form_process_actions
  489.                     [1] =&gt; form_process_container
  490.                 )
  491.  
  492.             [#weight] =&gt; 100
  493.            [#defaults_loaded] =&gt; 1
  494.            [#tree] =&gt;
  495.            [#parents] =&gt; Array
  496.                (
  497.                     [0] =&gt; actions
  498.                 )
  499.  
  500.             [#array_parents] =&gt; Array
  501.                (
  502.                     [0] =&gt; actions
  503.                 )
  504.  
  505.             [#processed] =&gt; 1
  506.            [#required] =&gt;
  507.            [#attributes] =&gt; Array
  508.                (
  509.                     [class] =&gt; Array
  510.                         (
  511.                             [0] =&gt; form-actions
  512.                         )
  513.  
  514.                 )
  515.  
  516.             [#title_display] =&gt; before
  517.            [#id] =&gt; edit-actions
  518.            [#sorted] =&gt; 1
  519.            [#children] =&gt; <div class="form-actions form-wrapper" id="edit-actions"><input class="ctools-modal-ctools-ajax-register-style form-submit" type="submit" id="edit-submit" name="op" value="Log in"></div>
  520.            [#printed] =&gt; 1
  521.        )
  522.  
  523.     [#sorted] =&gt; 1
  524.    [#children] =&gt; <form action="/user/register" method="post" id="user-login" accept-charset="UTF-8"><div><div class="form-item form-type-textfield form-item-name">
  525.  <label for="edit-name">Username or e-mail address <span class="form-required" title="This field is required.">*</span></label>
  526.  <input type="text" id="edit-name" name="name" value="" size="30" maxlength="60" class="form-text required">
  527. <div class="description">You may login with either your assigned username or your e-mail address.</div>
  528. </div>
  529. <div class="form-item form-type-password form-item-pass">
  530.   <label for="edit-pass">Password <span class="form-required" title="This field is required.">*</span></label>
  531.  <input type="password" id="edit-pass" name="pass" size="30" maxlength="128" class="form-text required">
  532. <div class="description">The password field is case sensitive.</div>
  533. </div>
  534. <input type="hidden" name="form_build_id" value="form-wfFwqD9S4QUZnuRoflBbLNVhSbfGDZ55Ex_GPnbUSic">
  535. <input type="hidden" name="form_id" value="user_login">
  536. <div class="login-forgot"><a href="/user/password">Request new password</a></div><div class="form-actions form-wrapper" id="edit-actions"><input class="ctools-modal-ctools-ajax-register-style form-submit" type="submit" id="edit-submit" name="op" value="Log in"></div></div></form>
  537. )
  538. </pre>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement