function bueditor_isupdate in BUEditor 7
Same name and namespace in other branches
- 6.2 admin/bueditor.admin.inc \bueditor_isupdate()
Return update state for an object to be used with drupal_write_record.
1 call to bueditor_isupdate()
- bueditor_write_editor in admin/
bueditor.admin.inc - Update/insert an editor.
File
- admin/
bueditor.admin.inc, line 972
Code
function bueditor_isupdate($obj, $key) {
return isset($obj->{$key}) && is_numeric($obj->{$key}) && $obj->{$key} > 0 ? array(
$key,
) : array();
}