DrupalBin
Submit Code
About
Recent Posts
Code
2 hours 8 min
ago
Fix for my user handler
2 hours 31 min
ago
Fix for my user handler
2 hours 34 min
ago
my user handler
4 hours 23 min
ago
more
Tags
CCK
fapi
javascript
jquery
menu
module
Panels
simpletest
template.php
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for nodereference.module excerpt - i quite don't understand the "error_field" part
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
case 'process form values': if ($field['multiple']) { // if nothing selected, make it 'none' if (empty($items['nids'])) { $items['nids'] = array(0 => '0'); } // drop the 'none' options if other items were also selected elseif (count($items['nids']) > 1) { unset($items['nids'][0]); } $items = array_values(content_transpose_array_rows_cols(array('nid' => $items['nids']))); } else { $items[0]['nid'] = $items['nids']; } // Remove the widget's data representation so it isn't saved. unset($items['nids']); foreach ($items as $delta => $item) { $items[$delta]['error_field'] = $field['field_name'] .'][nids'; }
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.