Hiow to re-create AJAX form

Hi,
I created form that show additional textfields when you check checkbox (you can see it below).

My first question: I found it working only if I wrap and refresh whole form. How can I refresh only these two textfield without using special field set. I tried with markup but with no luck.

My second question: Value of checkbox is stored in v_email_smtp_server_auth variable. When I open again these form check box is already checked but folowing textfields are not show as ajax is no executed yet. How to resolve these?

$form['email']['v_email_smtp_server_auth'] = array(
'#type' => 'checkbox',
'#title' => t('Authentication required'),
'#default_value' => variable_get('v_email_smtp_server_auth', 0),
'#description' => t('Check these option if your server need login authentication.'),
'#ajax' => array(
'callback' => '_v_ajax_admin_settings_form_callback',
'wrapper' => 'v-admin-settings-form',
'effect' => 'fade',
'progress' => array('type' => 'none'),
),
);

if (!empty($form_state['values']['v_email_smtp_server_auth']) && $form_state['values']['v_email_smtp_server_auth']) {
$form['email']['v_email_smtp_username'] = array(
'#type' => 'textfield',
'#title' => t('Username'),
'#default_value' => variable_get('v_email_smtp_username', ''),
'#size' => 30,
'#maxlength' => 50,

Colorbox missing "Image field options (CCK)" in configuration settings

Trying to find out why colorbox is not working properly on my live site despite working perfectly on my localhost. I copied everything from localhost to my HostGator site, but when I go to "configure -> colorbox" I am missing a section that looks like this from my live site:

Image field options

IMAGE FIELD GALLERY

o Per page gallery
o Per post gallery
o Per field gallery
o No gallery

0 votes 0answers 4 views Fatal error: Call to undefined function node_load_multiple()

$nodes = node_load_multiple(db_query('SELECT nid FROM {node}')->fetchCol());

the above code give me the following error, Fatal error: Call to undefined function node_load_multiple() in C:\xampp\htdocs\new_task\sites\all\modules\my_module\my_module.module on line 5

please help me how can i remove this error.i checked the node module is also enabled in the core modules of the drupal7

Difference between public_html/modules and public_html/sites/all/modules?

Hello I would like to know because when I download and install drupal 7

the default themes always come in the following path
public_html/modules/forum
and because it is
public_html/site/all/modules/forum,

but when I enter
mysite.com/#overlay=admin/modules/install
and put the url or upload the file is installed in
public_html/site/all/modules

What I suggest to use?

FAQ Module items won't collapse in live site

This is working fine in my localhost site. I have no idea what could have changed. I am on Hostgator and using PhP 5.3. My accordion or collapsed FAQs aren't working. All the FAQs are expanded and the links that I normally click on to expand them just all point to the main FAQ page. The other options for FAQ pages like links at the top that point to the text below work, just the accordion is broken.

Can't add fieldset to content type

I have the latest version of fieldgroup and ctools and I'm trying to add a fieldset to a content type.
However, I keep getting the error below. Any ideas?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x