You are here

function node_field_load_node_field in Node Field 7.2

Load node field.

Parameters

int $fid: Id of field to load.

Return value

array Returns array containing all field attributes or FALSE in case field not found.

6 calls to node_field_load_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_load in ./node_field.module
Menu node_field loader callback.
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.

... See full list

File

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

Code

function node_field_load_node_field($fid) {
  $node_field = node_field_db_field_select([
    'id' => $fid,
  ]);
  if ($node_field) {
    module_invoke_all('node_field_load', $node_field);
    $node_field = array_pop($node_field);
    return $node_field;
  }
  return FALSE;
}