hello anybody!
i have new the problem with form . i want add new parameter to my form , but it not work

function my_manager_settings_form ($form_state, $num = 10) {
  $form = array ();
  $sites = array ();
 // print_r($num); 
$sql = db_query_range ("SELECT * FROM {my_manager_settings} ORDER BY uid ASC", 0, $num);
// $num it not get value 10
$form['uid'] = array(

)



return $form;
}

How $num parameter active in my form, when i print_r($num) it show a array
Any solusion can help me? please

Comments

nevets’s picture

How are you invoking/calling my_manager_settings_form()?

vasi1186’s picture

Hi,

you just have to call

 $form_output = drupal_get_form('my_manager_settings_form', $your_num_variable);

Vasi.