Commit 87b55878 authored by yched's avatar yched
Browse files

by Morbus Iff - update after core API change in #658364

parent 8e8c813d
......@@ -156,9 +156,9 @@ function node_reference_field_formatter_info() {
}
/**
* Implements hook_field_formatter().
* Implements hook_field_formatter_view().
*/
function node_reference_field_formatter($obj_type, $object, $field, $instance, $langcode, $items, $display) {
function node_reference_field_formatter_view($obj_type, $object, $field, $instance, $langcode, $items, $display) {
$result = array();
// Collect the list of node ids.
......@@ -355,9 +355,9 @@ function node_reference_field_widget_settings_form($field, $instance) {
}
/**
* Implements hook_field_widget().
* Implements hook_field_widget_form().
*/
function node_reference_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
function node_reference_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
switch ($instance['widget']['type']) {
case 'node_reference_autocomplete':
$element += array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment