drupal-7.field.database.php 480 B

12345678910111213141516
  1. <?php
  2. /**
  3. * @file
  4. * Test content for the field update path.
  5. */
  6. db_insert('variable')->fields(array(
  7. 'name',
  8. 'value',
  9. ))
  10. ->values(array(
  11. 'name' => 'field_bundle_settings',
  12. 'value' => 'a:1:{s:4:"node";a:1:{s:4:"poll";a:1:{s:12:"extra_fields";a:1:{s:7:"display";a:2:{s:16:"poll_view_voting";a:1:{s:7:"default";a:2:{s:6:"weight";s:1:"0";s:7:"visible";b:1;}}s:17:"poll_view_results";a:1:{s:7:"default";a:2:{s:6:"weight";s:1:"0";s:7:"visible";b:0;}}}}}}}',
  13. ))
  14. ->execute();