Ragazzi ho questo codice:
codice:function factory_admin_settings() { $type_nodes = variable_get("factory_content_type", ''); $form['nodes'] = array('#type' => 'checkboxes', '#title' => t('Types'), '#options' => array_map('check_plain', node_get_types('names')), '#description' => t('A list of node types you want to associate with this vocabulary.'), '#required' => TRUE, '#default_value' => ?? ); $form['submit'] = array('#type' => 'submit', '#value' => t('Submit')); return $form; }
quello che ho in factory_content_type è "a:1:{s:4:"page";i:1;}"!
come faccio per farmi restituire le checkbox giuste cioè quelle segnate ad uno clikkate?? grazie mille! cioè cosa metto in '#default_value' => ???

Rispondi quotando