[ create a new paste ] login | about

Link: http://codepad.org/thuFxhBl    [ raw code | fork ]

PHP, pasted on Sep 5:
1
2
3
4
5
6
7
8
9
10
  $pdf = $form_state['values']['pdf'];

  $pdf_test = file_load($pdf);
  $pdf_test = (array) $pdf_test;
  $pdf_test['display'] = 1;
  $pdf_test['description'] = '';

  $carroza_user_wrapper->field_test_file->set($pdf_test);

  $carroza_user_wrapper->save();


Create a new paste based on this one


Comments: