Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DRUPAL 7
- I have two content Types... BINS and LOGS.
- A BIN has MANY LOGS.
- LOG has a text field called BINID. Example ("PF1022").
- If you goto /bin/pf1022, then you will goto the BIN page.
- FYI... I am submitting the LOGS from an ANDROID application over services 3.3.
- So I want to create a custom field in LOG that is = "/bin/" + [BINID]
- TO do this, I was thinking of using the COMPUTED FIELD, so I could store this value in the DB and use it with views... or do it dynamic.
- In the Computed Code (PHP) section of the field...
- $entity_field[0]['value'] = print_r ($entity); will give me this...
- [field_bin_id] => Array ( [und] => Array ( [0] => Array ( [value] => PF222 [format] => [safe_value] => PF222 ) ) )
- This does not work...
- //$entity_field[0]['value'] =$entity_field["field_bin_id"]["0"]["value"];
- HOW can I output something like this...
- "/bin/PF1022"?
- and as an HTML link?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement