From 4b08bd06b940ac9d1ef8054a76269a7f6e747411 Mon Sep 17 00:00:00 2001
From: andrew morton <drewish@katherinehouse.com>
Date: Fri, 30 Dec 2011 16:33:18 -0500
Subject: [PATCH] Issue #1276168 by Begun: Improve documentation of computed
 code functions.

---
 computed_field.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/computed_field.module b/computed_field.module
index 8c0dd2c..1e7f775 100644
--- a/computed_field.module
+++ b/computed_field.module
@@ -44,7 +44,7 @@ function computed_field_field_settings_form($field, $instance, $has_data) {
     '#type' => 'textarea',
     '#rows' => 15,
     '#title' => t('Computed Code (PHP)'),
-    '#description' => t('Some variables available to your code include: <code>@fields</code>. To set the value of the field, set <code>@entity_field</code>.  For multi-value computed fields continue with <code>@entity_field_multi</code>.  Here\'s a simple example which sets the computed field\'s value to the value of the sum of the number fields (<code>@field_a</code> and <code>@field_b</code>) in a node entity:<p><code>@example</code><p>Alternately, this code can be supplied by your own custom function named: <code>@compute_func()</code>', 
+    '#description' => t('Some variables available to your code include: <code>@fields</code>. To set the value of the field, set <code>@entity_field</code>.  For multi-value computed fields continue with <code>@entity_field_multi</code>.  Here\'s a simple example which sets the computed field\'s value to the value of the sum of the number fields (<code>@field_a</code> and <code>@field_b</code>) in a node entity:<p><code>@example</code><p>Alternately, this code can be supplied by your own custom function named: <code>@compute_func(&$entity_field, $entity_type, $entity, $field, $instance, $langcode, $items)</code>',
       array('@fields' => '$entity, $entity_type, $entity_lang, &$entity_field and $langcode',
         '@entity_field' => '$entity_field[0][\'value\']',
         '@entity_field_multi' => '$entity_field[1][\'value\']',
-- 
1.7.7.4

