By patoshi on
Hi,
I want to do this:
1. Create content.
2. User enters in information.
3. Modify the information before it gets outputted to the user.
Example:
Field is Address.
User enters in address.
Now everytime that content is shown it is auto linked to google maps.
How do I do this with the PHP code section? I do not know what is the variable to call and what to return.
The example given is this, but it doesnt help at all:
array(
0 => array('value' => value for value),
// You'll usually want to stop here. Provide more values
// if you want your 'default value' to be multi-valued :
1 => array('value' => value for value),
2 => ...
);
Using devel.moduCan someone please clarify?
Comments
I would start with the CCK address field
I would start with the CCK address field and then override theme_cck_address() to theme the address as desired.
also look at gmap module
check out gmap module: http://drupal.org/project/gmap
and location api module: http://drupal.org/project/location
..and here's a typical user problem scenario already solved in case you have any random issues: http://drupal.org/node/173115
and here (controlling locations) http://drupal.org/node/181340