⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Invisible field doesn't seems to work



Paul Savostin
  • profile picture
  • Member

Posted 09 August 2014 - 18:41 PM

Hi everyone!

I have in table field name "uri"

I want to update or insert this field by myself. Can i do this in callback_after_insert / callback_after_update ?

So doing next

->fields('......,...,.'uri')
->field_type('uri','invisible')
in callback_after_insert / callback_after_update

checking post['uri'] is NULL

just add to post['uri'] = test after inserting or updating does not save uri

Can anyone tell me what i am doing wrong?

Thanks!