t('Picture question'), 'description' => t('Picture'), 'features' => array( 'csv' => TRUE, 'email' => TRUE, 'email_address' => FALSE, 'email_name' => FALSE, 'required' => TRUE, 'title_display' => TRUE, 'title_inline' => TRUE, 'conditional' => FALSE, 'group' => FALSE, 'spam_analysis' => FALSE, 'attachment' => FALSE, ), ); return $components; } /** * _webform_defaults_component() */ function _webform_defaults_webform_pic() { return array( 'name' => '', 'form_key' => NULL, 'mandatory' => 0, 'pid' => 0, 'weight' => 0, 'extra' => array( 'private' => 0, 'description' => '', 'picture' => 0, ), ); } /** * _webform_edit_component() */ function _webform_edit_webform_pic($component) { $form = array(); $form['extra']['picture'] = array( '#type' => 'managed_file', '#title' => t('Picture'), '#default_value' => '', '#description' => t('Picture upload'), '#upload_location' => 'public://webform_pic/', ); return $form; }