This is my custom code:

function computed_field_field_create_invoice_link_display($entity_field, $entity_type, $field) {
$display_output = 'test';
}

I get this message:

Notice: Undefined variable: entity_field_item in computed_field_field_create_invoice_link_display() (line 19 of /var/www/Anyjob-Portal/sites/all/modules/anyjob_settings/includes/create_invoice_link.inc).

I'm unclear what variables to pass to the function?

Comments

bjalford’s picture

pasted wrong version...

function computed_field_field_create_invoice_link_display(&$entity_field, $entity_type, $field) {
$display_output = 'test';
}

colan’s picture

Title: custom function display » Document arguments for custom display function
Component: Code » Documentation
Category: support » task
Status: Active » Fixed

See the comment over at http://drupal.org/node/149225#comment-5315464. Field-level help added in 14a8c5f.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.