2021年3月27日星期六

store XML in Drupal Form

I am following drupal docs to create form, that store XML. I only could find that, by default it shows text-area field and user allowed text formats will be allowed.

I could not find anything that mentions XML, this is a required format for my project, anyone who understands Drupal are welcome for suggestion.

I want to store and edit xml with drupal form.

Given form used by me:

$form['body'] = array(    '#title' => 'Body',    '#format' => 'full_html',    '#default_value' => '',  );  

Should I overridedefault validator or write another form handler, please suggest

https://stackoverflow.com/questions/66837568/store-xml-in-drupal-form March 28, 2021 at 09:04AM

没有评论:

发表评论