/**
* Implementation of hook_nodeapi().
*/
function custom_nodeapi(&$node, $op) {
switch ($op) {
case 'presave':
if ($node->type == 'order') {
$node->field_date_creation[0]['value'] = format_date(time());
$node->field_date_creation[0]['_error_element'] = 'field_date_creation][0][value';
}
break;
}
}
Categories
symfony 1.2
(5)
jQuery
(4)
java
(4)
eclipse rcp
(3)
spring
(3)
Inno Setup
(2)
JavaScript
(2)
MySQL
(2)
drupal
(2)
forms
(2)
jqGrid
(2)
litha-paint
(2)
required fields
(2)
CCK field filling
(1)
CRUD
(1)
Content page
(1)
Coursera
(1)
Coursera lectures
(1)
DB encoding
(1)
EclipseLink
(1)
ImageDescriptor
(1)
JPA
(1)
PR your self
(1)
blogger
(1)
data:postLabelsLabel
(1)
debug
(1)
deep object clone
(1)
django
(1)
django  templates
(1)
eclipse
(1)
entity naming  convention
(1)
error
(1)
github
(1)
google calendar
(1)
grid
(1)
hello world
(1)
hibernate
(1)
jinja2
(1)
jndi
(1)
maven
(1)
menu
(1)
mylyn
(1)
open source
(1)
postdata
(1)
propel behavior
(1)
python
(1)
release
(1)
service
(1)
setup script
(1)
startup
(1)
symfony 1.2.2
(1)
tags
(1)
templating
(1)
tomcat
(1)
transaction
(1)
web drawing
(1)
web service
(1)
2009-02-21
Drupal 6 & CCK field filling manually
If you should fill CCK field manually you must fill 'value' field and '_error_element' field. Otherwise data will not be accepted.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment