Computed Field is a module that implements a field to execute PHP code to set its value.

learn more… | top users | synonyms

-1
votes
0answers
23 views

Create a Running Calculator [closed]

How would I create a running calculator similar to CoolRunning? Is this something I could do in Computed Field?
0
votes
1answer
43 views

Using Drupal 7 Computed Fields I need to reference a custom field I created in User Profile

I am still learning a lot with Drupal 7 and unfortunately on the fly. I used computed fields to calculate weight loss. This is what I current have. Which works in a sense but only where the user ...
0
votes
0answers
29 views

Strict warning: Only variables should be passed by reference at eval() ..computed_field.module(466) : eval()'d code [closed]

This is warning message I got. Strict warning: Only variables should be passed by reference at eval() ..computed_field.module(466) : eval()'d code I think it's related to the code that I inserted ...
0
votes
1answer
32 views

multiplying fields values

Hi can someone help me with some field maths. I have taxonomy vocabulary called "plast" with several terms (large box, small box etc.) i have created field within the taxonomy called weight which is ...
0
votes
1answer
21 views

Computed field - count number of taxonomy terms in term reference field

So I simply want to count the number of tags on a term reference field.. I've tried a count (below) and it simply returns "1" (there are a lot more terms tagged than 1): $entity_field[0]['value'] = ...
0
votes
1answer
56 views

Computed Field: Setting up entity title

Hello fellow Drupal people, I have written inside a Computed Field's Computed Code section the following code, which works except the commented out section which includes two options for setting up ...
0
votes
1answer
53 views

If NID doesn't exist, save node?

I'm using menu_get_object() to get the NID for a computed field. The problem is that on a node save, NID doesn't exist yet so the computed field produces an error. If I resave the node, everything ...
0
votes
1answer
90 views

Computed Field - Reference Custom Field on User Profile

I'm very close to getting this working right. I created a custom content type with several decimal fields and an entity reference field where you select a user to assign the content to. I am using a ...
0
votes
0answers
18 views

Unique serial number on conditional select field

I need to create a serial number in a format. First entry I want to do from myself and then after I want some logic to create it on one conditional select. I have a select box with option ...
0
votes
0answers
19 views

retrieving data from another source and storing it in a uneditable user field

I am creating a fan website for a certain game. I have an api that returns a user's rank in the game when called. What I am trying to accomplish is have a field in the user's account that contains a ...
0
votes
2answers
93 views

Computed Fields calculation help needed

I have a specific calculation that works in a Global PHP field in a view, and I need it to be "translated" so that it works with a Computed Field CCK field. Here is the code... can anyone shed some ...
0
votes
0answers
34 views

Change type of computed field in phpmyadmin

I want to have a computed field with DateTime data type but datatime is missing in list. my question is : What happens if I choose text from list and change that to datetime with phpmyadmin? What is ...
0
votes
0answers
28 views

How do you set a default value of a text field based off of another field?

Currently i want to set the default value of a text field if nothing is entered to another field in the same node. I created a computed field that parses a bunch of other fields together to form the ...
0
votes
1answer
68 views

Computed Field Module, how do you reference another field properly?

In drupal 7, for the "computed field module". How do you reference another field properly?
2
votes
2answers
68 views

Update Computed field with hook_cron

I have a field age in profile of my Drupal Instant which computes age from the D.O.B of the user. How do I make sure the age is updated along with cron job. Is there any way to trigger. Right now I ...

1 2 3
15 30 50 per page