You are here

function paypal_donations_theme in PayPal Donations 7

Implements hook_theme().

File

./paypal_donations.module, line 196

Code

function paypal_donations_theme($existing, $type, $theme, $path) {
  $themes = array();
  $shared_variables = array(
    'predefined_amounts' => array(),
    'notify_url' => '',
    'return_url' => '',
    'item_name' => '',
    'submit_value' => '',
    'currency_code' => '',
    'currency_sign' => '',
    'account_email' => '',
    'custom_amount_allowed' => '',
    'custom_amount_label' => '',
    'top_logo' => array(),
  );
  $themes['paypal_donations_single'] = array(
    'template' => 'templates/paypal_donations_single',
    'variables' => $shared_variables,
  );
  $themes['paypal_donations_recurring'] = array(
    'template' => 'templates/paypal_donations_recurring',
    'variables' => array_merge($shared_variables, array(
      'recurring_period' => '',
      'recurring_unit' => '',
    )),
  );
  return $themes;
}