Thanks for signing on!
And now can you tell us if you have ever experienced discrimination in any form of housing due to being a parent?
Your experience will have a big impact on policy makers and give them a clear picture of the extent of discrimination families face across this country.
Share your experiences in the box below by answering this question: Do you feel you’ve been discriminated against in any form of housing (as a renter, owner, or in trying to get a loan, etc.) due to being pregnant or having children?
$user->uid, 'name' => $user->name, 'type' => $type, ); $form = drupal_retrieve_form($type .'_node_form', $data); //Let all form hooks run drupal_prepare_form($type .'_node_form', $form); //set the campaign to hidden $form['field_campaign']['key']['#type'] = 'hidden'; //remove phone number field unset ($form['field_phone_number']); //set the campaign #: 0 = housing_discrimination, 1 = early learning,... 6 = toxics $form['field_campaign']['key']['#value'] = '0'; //change story label $form['field_mr_story_body']['0']['value']['#title'] = 'Share Your Experience'; //Set resulting mrstory as published by default //Doesnt work. Need to figure out how to change default for anon users $form['options']['status']['#value'] = 1; //remind drupal to actually create the node $form['#action'] = '/node/add/'.$type; //remove [field_mr_paidsick_tax] AND early learning taxonomy AND any other unset($form['field_mr_paidsick_tax']); unset($form['field_mr_taxonomy']); unset($form['field_mr_toxics_tax']); unset($form['field_ccktaxecon']); unset($form['field_mr_breastfeeding_tax']); unset($form['field_ca_kids_health']); //remove the log message unset($form['log']); //remove the preview button unset($form['preview']); //remove the input format unset($form['field_mr_story_body']['0']['format']); // set the destination in THIS variable: $dest = '/mrstory/housing_discrimination/thankyou'; // actually create the node and set the destination in the URL $form['#action'] = '/node/add/'.$type.'&destination='.$dest; //print_r($form); // do not uncomment //print dsm($form); // do not uncomment print drupal_render_form($type .'_node_form',$form); ?>


