Created
August 19, 2013 09:22
-
-
Save krzysztofjeziorny/6267261 to your computer and use it in GitHub Desktop.
Check Drupal fields for corrupt data
https://drupal.org/node/1185368
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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