You are here

function node_field_delete_node_field in Node Field 7.2

Delete node field. Input array must contain id of field.

Parameters

array $field: Array of node field attributes.

Return value

bool Returns TRUE on success, FALSE on failure.

3 calls to node_field_delete_node_field()
node_field_node_delete in ./node_field.module
Implements hook_node_delete().
node_field_node_field_delete_form_submit in includes/node_field.form.node_field.inc
Submit callback for node_field_node_field_delete_form().
node_field_node_update in ./node_field.module
Implements hook_node_update().

File

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

Code

function node_field_delete_node_field(array $field) {
  module_invoke_all('node_field_delete', $field);
  $values = [
    'id' => $field['id'],
  ];
  $result = node_field_db_field_delete($values);
  return $result;
}