Skip to content

Instantly share code, notes, and snippets.

@krzysztofjeziorny
Created August 19, 2013 09:22
Show Gist options
  • Save krzysztofjeziorny/6267261 to your computer and use it in GitHub Desktop.
Save krzysztofjeziorny/6267261 to your computer and use it in GitHub Desktop.
Check Drupal fields for corrupt data https://drupal.org/node/1185368
<?php
// *********** Print $fields array to investigate which field content are problematic
print_r($fields);
// Build the SQL.
if (empty($primary_keys)) {
// We are doing an insert.
$options = array('return' => Database::RETURN_INSERT_ID);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment