Записать в базу Drupal (только для таблиц определенных схемой)


$data = array(
'name' => 'something',
'description' => 'something else',
'array1' => $myarray1,
'array2' => $myarray2
);
drupal_write_record('my_table', $data);
?>

Категория: 
The code has been tested and works

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.