This is my snippet how to pass the argument for the form function ,
Below is the sample one, but not working,can u make it work,
$output[] .=drupal_get_form('username_form','$usernameID','$username');
function username_form(&$node, $form_values){ $form['userName'] = array( '#type' => 'select', '#title' => t('User Name'), '#options' => array( $usernameID => '$username', ), '#default_value' => '1', '#description' => t(''), '#required' => TRUE ); return $form;
}
bharani kumar:
This is my snippet
how to pass the argument for the form function ,
Below is the sample one, but not working,can u make it work,
$output[] .=drupal_get_form('username_form','$usernameID','$username');
function username_form(&$node, $form_values){ $form['userName'] = array( '#type' => 'select', '#title' => t('User Name'), '#options' => array( $usernameID => '$username', ), '#default_value' => '1', '#description' => t(''), '#required' => TRUE ); return $form;
}
Try not to use single quotes for variables. Like this:
$output[] .= drupal_get_form('username_form', $usernameID, $username);
I've installed properly the module, it works.. but when trying to follow link to pdf from a custom node type (with a lot of cck fields [i guess could be the cause?]) I get a timeout error.
Maximum execution time of 60 seconds exceeded in */home/lu/www/drupal/6/sites/all/modules/print/dompdf-0.5.1/include/text_frame_reflower.cls.php* on line *90 * and then tried with 360s : Maximum execution time of 360 seconds ... on line *3753 ** *Does somebody can give me an hint ?
thanks in advice, Luca