Closed (fixed)
Project:
ecard
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Feb 2008 at 18:50 UTC
Updated:
11 Aug 2008 at 13:52 UTC
How to hide ecard form from teasers and to show it only on the page?
Comments
Comment #1
mssarath commentedin the ecard.module file please find out the following
// Add our form as a content item.
$node->content['ecard_form'] = array(
'#value' => drupal_get_form('ecard_form', $node),
'#weight' => 100
);
and replace it with the following
// Add our form as a content item.
if ($teaser == FALSE){
$node->content['ecard_form'] = array(
'#value' => drupal_get_form('ecard_form', $node),
'#weight' => 100
);
}
Comment #2
guy_incognito_uk commentedFirst post for me!
The second line of the replacement code is wrong, the { at the end is not needed? It should read:
if ($teaser == FALSE)
Comment #3
mssarath commentedi didn't get exactly on what is wrong, its not necessary to put {} for that if conditions as its single line after that. but for others when they read code it will be difficult to read it. a good ide give nice colors to the {} brackets.
you can have a look at this.
http://drupal.org/coding-standards
Comment #4
mssarath commentedComment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.