<div>David,</div>
<div>Thanks a lot for your kind answer.</div>
<div>I had read about 'storage', I hope it was mentioned it is used in D6. In D7 it may work, probably they were discouraging to use it.</div>
<div> </div>
<div>I have managed to do it using _SESSION stuff. Though it is working to some extent, still I beleive I am missing certian things here. Request to experts kindly review below code and guide me if I am correct.</div>
<div> </div>
<div>For reference kindly see <a href="http://www.netcloudsystems.com/?q=questionnaire/form/manage">http://www.netcloudsystems.com/?q=questionnaire/form/manage</a> link.</div>
<div>Corresponding code is as below.  Please let me know, if below code is correct, or it can be optimized for faster operation. I have two major concerns,</div>
<div> </div>
<div>1.   It looks to me the whole form is rebuilt when I click the "Add More Caregories" button, hence it takes more time to add a question category. I know it is happeing because I have a line of code <font color="#3333ff"> $form_state['rebuild'] = TRUE; in add_more_categories function.</font><br>
</div>
<div> </div>
<div>2. Next the sequence of calling of functions looks strange to me.</div>
<div>First time page loads, it calls questionnaire_my_form.</div>
<div>On clicking "Add More Categories" button, functions are called in below sequence.</div>
<div> </div>
<div>
<ul>
<li>add_more_question_categories, category count = 1</li>
<li>questionnaire_my_form, category count = 2</li>
<li>questionnaire_category_callback, category count = 2</li></ul></div>
<div>My understanding is that with AJAX, we should be able to modify the portion of a form, not the whole form.</div>
<div>I am not able to acheive it. </div>
<div> </div>
<div>Kindly somebody help me to understand D7 AJAX stuff better.</div>
<div><br><font color="#3333ff"><?php</font></div>
<div><font color="#3333ff">function questionnaire_menu() {<br>    $items = array();</font></div>
<div><font color="#3333ff">    $items['questionnaire/form/manage'] = array(<br>        'title' => t('Manage questions'),<br>        'page callback' => 'questionnaire_form',<br>
        'access arguments' => array('question manage'),<br>        'type' => MENU_SUGGESTED_ITEM,<br>    );</font></div>
<div><font color="#3333ff">    return $items;<br>}</font></div>
<div><font color="#3333ff">function questionnaire_permission() <br>{<br>    return array(<br>        'question manage' => array(<br>        'title' => t('Question management'),<br>        'description' => t('Provides question management capability'),<br>
    ),<br>    );          <br>}</font></div>
<div><font color="#3333ff">function questionnaire_form() <br>{<br>    unset( $_SESSION['questionnaire']['all_categories'] );<br>    $_SESSION['questionnaire']['all_categories'] = 1;</font></div>
<div><font color="#3333ff">    return drupal_get_form('questionnaire_my_form');<br>}</font></div>
<div><font color="#3333ff">function questionnaire_my_form($form, &$form_state) <br>{  <br>    $form_state['cache'] = TRUE;<br>    <br>    <br>    /////////////  Start question category ////////////<br>    <br>
    $form['category_fieldset'] = array(    <br>        '#tree' => TRUE,<br>        '#title' => t("Questions Categories"),    <br>        '#prefix' => '<div id="category-div">',    <br>
        '#suffix' => '</div>',    <br>        '#type' => 'fieldset',    <br>        //'#description' => t('Please enter the question categories'), <br>       '#collapsible' => TRUE,<br>
       '#collapsed' => FALSE,<br>    );</font></div>
<div><font color="#3333ff">    for ($i=1; $i <= $_SESSION['questionnaire']['all_categories'] ; $i++) <br>    {    <br>        if(isset($_SESSION['questionnaire'][$i-1]['catg']))<br>        {<br>
            $form['category_fieldset'][$i]['catg'] = array(      <br>                '#type' => 'textfield',      <br>                '#title' => "Question Category $i", <br>
                '#value' => $_SESSION['questionnaire'][$i-1]['catg'],<br>            );  <br>            <br>            unset($_SESSION['questionnaire'][$i-1]['catg']);</font></div>
<div><font color="#3333ff">            $form['category_fieldset'][$i]['remove'] = array(      <br>                '#type' => 'checkbox',      <br>                '#title' => 'Remove',<br>
            );  <br>        }<br>        else<br>        {<br>            $form['category_fieldset'][$i]['catg'] = array(      <br>                '#type' => 'textfield',      <br>                '#title' => "Question Category $i",  <br>
            );  </font></div>
<div><font color="#3333ff">            $form['category_fieldset'][$i]['remove'] = array(      <br>                '#type' => 'checkbox',      <br>                '#title' => 'Remove',<br>
            );  <br>        }<br>        <br>    }  </font></div>
<div><font color="#3333ff">    $form['category_fieldset']['add_more_categories'] = array(    <br>        '#type' => 'submit',<br>        '#value' => t('Add More Categories'),<br>
        '#submit' => array('add_more_question_categories'),<br>        '#ajax' => array(      <br>        'callback' => 'questionnaire_category_callback',      <br>        'wrapper' => 'category-div',      <br>
        'method' => 'replace',      <br>        'effect' => 'fade',    <br>    ), <br>    );</font></div>
<div><font color="#3333ff">    /////////////  End question category ////////////</font></div>
<div><br><font color="#3333ff">  $form['line_break1'] = array(<br>  '#markup' => '<br>',<br>  );   </font></div>
<div><font color="#3333ff">    $form['submit'] = array(    <br>        '#type' => 'submit',    <br>        '#value' => t('Save Questions & Categories'),  <br>    );  </font></div>
<div><font color="#3333ff">    return $form;<br>}   </font></div>
<div><font color="#3333ff">function questionnaire_category_callback($form, $form_state) <br>{  <br>    return $form['category_fieldset'];<br>}</font></div>
<div><font color="#3333ff">function add_more_question_categories($form, &$form_state)<br>{<br>    //Here, loop through all the category elements, if any remove checkbox is enabled, delete the corresponding row.<br>    $removed_categories = 0;<br>
    $i = 0;<br>    $j = 0;</font></div>
<div><font color="#3333ff">    while ($i < $_SESSION['questionnaire']['all_categories'])<br>    {<br>        if($form_state['values']['category_fieldset'][($i + 1)]['remove'] == 1)<br>
        {<br>            $removed_categories++;<br>        }<br>        else<br>        {<br>            $_SESSION['questionnaire'][$j]['catg'] = $form_state['values']['category_fieldset'][($i + 1)]['catg'];<br>
            $j++;<br>        }<br>        <br>        $i++;<br>    }<br>    <br>    if($removed_categories > 0)<br>    {<br>        $_SESSION['questionnaire']['all_categories'] = $_SESSION['questionnaire']['all_categories'] - $removed_categories;<br>
    }<br>    else<br>    {<br>        $_SESSION['questionnaire']['all_categories'] = $_SESSION['questionnaire']['all_categories'] + 1;<br>    }</font></div>
<div><font color="#3333ff">    $form_state['rebuild'] = TRUE;<br>}</font></div>
<div><font color="#3333ff">function questionnaire_submit($form, &$form_state)<br>{<br>    drupal_set_message('Save functionality not implemented yet.');<br>    $form['#redirect'] = FALSE;<br>}</font></div>
<div><font color="#3333ff">?></font></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Mon, Sep 10, 2012 at 9:01 PM, Metzler, David <span dir="ltr"><<a href="mailto:metzlerd@evergreen.edu" target="_blank">metzlerd@evergreen.edu</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><u></u><u></u><u></u>
<div lang="EN-US" vlink="blue" link="blue">
<div>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="FONT-FAMILY:Arial;COLOR:navy;FONT-SIZE:10pt">I have not used form values in this way before and am unsure if they will work this way.  Typically $form_state[‘storage’] is where you might place these values that are part the form that may be modified by <u></u><u></u>ajax<u></u><u></u> callback handlers.  Have you tried using $form_state[‘storage’] instead of $form_state[‘values’] for your $all_categories data?  <u></u><u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="FONT-FAMILY:Arial;COLOR:navy;FONT-SIZE:10pt"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="FONT-FAMILY:Arial;COLOR:navy;FONT-SIZE:10pt"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial"><span style="FONT-FAMILY:Arial;COLOR:navy;FONT-SIZE:10pt"><u></u> <u></u></span></font></p>
<div>
<div style="TEXT-ALIGN:center" class="MsoNormal" align="center"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">
<hr align="center" size="2" width="100%">
</span></font></div>
<p class="MsoNormal"><b><font face="Tahoma"><span style="FONT-FAMILY:Tahoma;FONT-SIZE:10pt;FONT-WEIGHT:bold">From:</span></font></b><font face="Tahoma"><span style="FONT-FAMILY:Tahoma;FONT-SIZE:10pt"> <a href="mailto:support-bounces@drupal.org" target="_blank">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org" target="_blank">support-bounces@drupal.org</a>] <b><span style="FONT-WEIGHT:bold">On Behalf Of </span></b>Kamal Palei<br>
<b><span style="FONT-WEIGHT:bold">Sent:</span></b> Sunday, September 09, 2012 8:44 PM<br><b><span style="FONT-WEIGHT:bold">To:</span></b> <u></u><a href="mailto:support@drupal.org" target="_blank">support@drupal.org</a><u></u><br>
<b><span style="FONT-WEIGHT:bold">Subject:</span></b> [support] Drupal 7 AHAH/AJAX issue</span></font><u></u><u></u></p></div>
<div>
<div class="h5">
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"><u></u> <u></u></span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">Hi List<u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">I am trying to learn <u></u><u></u>ajax<u></u><u></u> stuff in Drupal 7.<u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">I want to have a simple <font color="gray"><span style="COLOR:gray">questionnaire</span></font> form. Where I will have a single textfield.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">In that text field one will type a question category, and if he wants to type more question categories, user need to click a  button "Add More Categories".<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">Please see link <a href="http://www.netcloudsystems.com/?q=questionnaire/form/manage" target="_blank">http://www.netcloudsystems.com/?q=questionnaire/form/manage</a><u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">The whole source code is at the end of this email.  When <u></u><u></u>ajax<u></u><u></u> callback fires, I want to remember how many textfields I need to add, so that when a section of form is updated in _form() hook, I can according add those many textfields.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">I am trying to manage that using a variable "$all_categories" and form element $form['all_categories']  (of type value).<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">I tried many options, always I find $all_categories value is 1.   So I am unable to add more textfields. <u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">My observation is whatever I set in <u></u><u></u>ajax<u></u><u></u> callback, in _form hook api, I find value is lost.<u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">Kindly guide me what I am missing.<u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">Best Regards<u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">Kamal<u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><strong><b><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt">NECS, <u></u><u></u>Bangalore<u></u><u></u></span></font></b></strong><u></u><u></u></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt"><?php</span></font></i></em><u></u><u></u></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt">function questionnaire_menu() {</span></font></i></em><i><font color="#000099"><span style="FONT-STYLE:italic;COLOR:#000099"><br>
<em><i><font face="Times New Roman"> $items = array();</font></i></em><br><em><i><font face="Times New Roman">  </font></i></em><br><em><i><font face="Times New Roman"> $items['questionnaire/form/manage'] = array(</font></i></em><br>
<em><i><font face="Times New Roman"> 'title' => t('Manage questions'),</font></i></em><br><em><i><font face="Times New Roman"> 'page callback' => 'questionnaire_form',</font></i></em><br>
<em><i><font face="Times New Roman"> 'access arguments' => array('question manage'),</font></i></em><br><em><i><font face="Times New Roman"> 'type' => MENU_SUGGESTED_ITEM,</font></i></em><br>
<em><i><font face="Times New Roman"> );</font></i></em></span></font></i><u></u><u></u></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt">  return $items;</span></font></i></em><i><font color="#000099"><span style="FONT-STYLE:italic;COLOR:#000099"><br>
<em><i><font face="Times New Roman">}</font></i></em></span></font></i><u></u><u></u></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt">function questionnaire_permission() </span></font></i></em><i><font color="#000099"><span style="FONT-STYLE:italic;COLOR:#000099"><br>
<em><i><font face="Times New Roman">{</font></i></em><br><em><i><font face="Times New Roman">  return array(</font></i></em><br><em><i><font face="Times New Roman">   'question manage' => array(</font></i></em><br>
<em><i><font face="Times New Roman">   'title' => t('Question management'),</font></i></em><br><em><i><font face="Times New Roman">   'description' => t('Provides question management capability'),</font></i></em><br>
<em><i><font face="Times New Roman">   ),</font></i></em><br><em><i><font face="Times New Roman">  );          </font></i></em><br><em><i><font face="Times New Roman">}</font></i></em></span></font></i><u></u><u></u></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt">function questionnaire_form() </span></font></i></em><i><font color="#000099"><span style="FONT-STYLE:italic;COLOR:#000099"><br>
<em><i><font face="Times New Roman">{</font></i></em><br><em><i><font face="Times New Roman"> return drupal_get_form('questionnaire_my_form');</font></i></em><br><em><i><font face="Times New Roman">}</font></i></em></span></font></i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt">function questionnaire_my_form($form, &$form_state) </span></font></i></em><i><font color="#000099"><span style="FONT-STYLE:italic;COLOR:#000099"><br>
<em><i><font face="Times New Roman">{  </font></i></em><br><em><i><font face="Times New Roman">  $form_state['cache'] = TRUE;</font></i></em><br><em><i><font face="Times New Roman">  </font></i></em><br><em><i><font face="Times New Roman">  $all_categories = !empty($form_state['values']['all_categories']) ? $form_state['values']['all_categories'] : 1;  </font></i></em></span></font></i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt">  $form['all_categories'] = array(</span></font></i></em><i><font color="#000099"><span style="FONT-STYLE:italic;COLOR:#000099"><br>
<em><i><font face="Times New Roman">   '#type' => 'value', </font></i></em><br><em><i><font face="Times New Roman">   '#default_value' => $all_categories,</font></i></em><br><em><i><font face="Times New Roman">   '#value' => $all_categories);</font></i></em></span></font></i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt">   // The prefix/suffix provide the div that we're replacing, named by    </span></font></i></em><i><font color="#000099"><span style="FONT-STYLE:italic;COLOR:#000099"><br>
<em><i><font face="Times New Roman">   // #<u></u><u></u>ajax<u></u><u></u>['wrapper'] above.    </font></i></em><br><em><i><font face="Times New Roman">   $form['category_fieldset'] = array(    </font></i></em><br>
<em><i><font face="Times New Roman">        '#title' => t("Questions Categories"),    </font></i></em><br><em><i><font face="Times New Roman">        '#prefix' => '<div id="category-div">',    </font></i></em><br>
<em><i><font face="Times New Roman">        '#suffix' => '</div>',    </font></i></em><br><em><i><font face="Times New Roman">        '#type' => 'fieldset',    </font></i></em><br>
<em><i><font face="Times New Roman">        '#description' => t('Please enter the question categories'), </font></i></em><br><em><i><font face="Times New Roman">   );</font></i></em></span></font></i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"><br><em><i><font color="#000099" face="Times New Roman"><span style="COLOR:#000099">   for ($i=1; $i<= $all_categories ; $i++) </span></font></i></em><i><font color="#000099"><span style="FONT-STYLE:italic;COLOR:#000099"><br>
<em><i><font face="Times New Roman">   {   </font></i></em><br><em><i><font face="Times New Roman">      $key = 'ctg' . $i;</font></i></em><br><em><i><font face="Times New Roman">      $form['category_fieldset']['category'][$key] = array(      </font></i></em><br>
<em><i><font face="Times New Roman">         '#type' => 'textfield',      </font></i></em><br><em><i><font face="Times New Roman">         '#title' => "Question category $i",    </font></i></em><br>
<em><i><font face="Times New Roman">         );  </font></i></em><br><em><i><font face="Times New Roman">    }  </font></i></em></span></font></i><u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt">   $form['category_fieldset']['add_more_category'] = array(    </span></font></i></em><i><font color="#000099"><span style="FONT-STYLE:italic;COLOR:#000099"><br>
<em><i><font face="Times New Roman">        '#type' => 'submit',</font></i></em><br><em><i><font face="Times New Roman">        '#value' => t('Add More Categories'),</font></i></em><br>
<em><i><font face="Times New Roman">        '#<u></u><u></u>ajax<u></u><u></u>' => array(      </font></i></em><br><em><i><font face="Times New Roman">          'callback' => 'questionnaire_category_callback',</font></i></em><br>
<em><i><font face="Times New Roman">          'wrapper' => 'category-div',      </font></i></em><br><em><i><font face="Times New Roman">          'method' => 'replace',      </font></i></em><br>
<em><i><font face="Times New Roman">          'effect' => 'fade',    </font></i></em><br><em><i><font face="Times New Roman">          ), </font></i></em><br><em><i><font face="Times New Roman">     );</font></i></em><br>
<em><i><font face="Times New Roman">    </font></i></em><br><em><i><font face="Times New Roman">    $form['submit'] = array(    </font></i></em><br><em><i><font face="Times New Roman">        '#type' => 'submit',    </font></i></em><br>
<em><i><font face="Times New Roman">        '#value' => t('Submit'),  </font></i></em><br><em><i><font face="Times New Roman">        );  </font></i></em><br><em><i><font face="Times New Roman">        </font></i></em><br>
<em><i><font face="Times New Roman">    return $form;</font></i></em><br><em><i><font face="Times New Roman">}   </font></i></em></span></font></i><u></u><u></u></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt">function questionnaire_category_callback($form, &$form_state) </span></font></i></em><i><font color="#000099"><span style="FONT-STYLE:italic;COLOR:#000099"><br>
<em><i><font face="Times New Roman">{ </font></i></em><br><em><i><font face="Times New Roman">  $form_state['values']['all_categories'] = $form_state['values']['all_categories'] + 1;</font></i></em><br>
<em><i><font face="Times New Roman">  return $form['category_fieldset'];</font></i></em><br><em><i><font face="Times New Roman">}</font></i></em></span></font></i><u></u><u></u></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR:#000099;FONT-SIZE:12pt">?></span></font></i></em><u></u><u></u></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE:12pt"> <u></u><u></u></span></font></p></div></div></div></div></div>Best Regards<br></blockquote>
<div>Kamal</div>
<div>NECS, Bangalore</div>
<div> </div>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">--<br>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</blockquote></div><br>