You are here

function node_field_update_node_field in Node Field 7.2

Update existing node field. Input array must contain id of field.

Parameters

array $field: Array of node field attributes.

Return value

bool Returns FALSE in case operation failed.

7 calls to node_field_update_node_field()
node_field_file_db_on_insert in modules/node_field_file/model/node_field_file.db.inc
Change status of file for newly created node field.
node_field_file_form_alter in modules/node_field_file/node_field_file.module
Implements hook_form_alter().
node_field_node_field_edit_form_submit in includes/node_field.form.node_field.inc
Submit callback for node_field_node_field_edit_form().
node_field_node_field_form_submit in includes/node_field.form.node_field.inc
Submit handler for "Save" button.
node_field_node_submit in ./node_field.module
Implements hook_node_submit().

... See full list

File

includes/node_field.api.inc, line 141
API and helpers functions for Node Field module.

Code

function node_field_update_node_field(array &$field) {
  $result = node_field_db_field_update($field);
  if ($result) {
    module_invoke_all('node_field_update', $field);
  }
  return $result;
}