You are here

function node_field_menu_title_callback in Node Field 7.2

Title callback for node field menu items.

1 string reference to 'node_field_menu_title_callback'
node_field_menu in ./node_field.module
Implements hook_menu().

File

./node_field.module, line 76
This module provide ability to add extra fields to any single node.

Code

function node_field_menu_title_callback($field, $op) {
  if ($op == 'edit') {
    return t('Edit "!title" node field', [
      '!title' => $field['title'],
    ]);
  }
  else {
    return t('Delete "!title" node field', [
      '!title' => $field['title'],
    ]);
  }
}