Closed (fixed)
Project:
lm_paypal
Version:
7.x-1.x-dev
Component:
LM Paypal Donations
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2011 at 11:31 UTC
Updated:
10 Jun 2011 at 12:35 UTC
Upgraded to latest d7 dev version (8 June) and my snippet below doesn't render...
<?php
print drupal_render(lm_paypal_donate(
array(25),
array(
'currency_code' => 'GBP', // currency_code
'item_name' => 'Donation to Abaseen Foundation', // not required but you want to know what they are paying for
'button' => array('text' => 'Make a Donation',)
)
));
?>
I have php code set as filer type and user has right permissions.
Comments
Comment #1
L-four commentedYou no longer require drupal_render, i changed it so that works the same as drupal 6. The function will still return a render array if you set 'render' to FALSE.
so both these will work.
Just printing the result of the function.
or using the function to generate part of a large render array.
Comment #2
sksmithson commentedSweet, that works. Thanks for the speedy response.