You are here

function bueditor_isupdate in BUEditor 6.2

Same name and namespace in other branches
  1. 7 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 866

Code

function bueditor_isupdate($obj, $key) {
  return isset($obj->{$key}) && is_numeric($obj->{$key}) && $obj->{$key} > 0 ? array(
    $key,
  ) : array();
}