Skip to content

Instantly share code, notes, and snippets.

@ritcheyer
Created June 25, 2015 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ritcheyer/3f627c53f6bc32a68321 to your computer and use it in GitHub Desktop.
Save ritcheyer/3f627c53f6bc32a68321 to your computer and use it in GitHub Desktop.
<?php
/**
* Implements hook_preprocess_html
*/
function tesla_charge_card_html(&$variables) {
if(current_path() == 'creditapp') {
$variables["html_tag_classes"] .= 'footer-fixed ';
}
}
/**
* Implements hook_theme()
*/
function tesla_charge_card_theme(){
return array(
'tesla_charge_card_page' => array(
'template' => 'tesla-charge-card',
'type' => 'page',
'path' => drupal_get_path('module','tesla_charge_card') . '/templates',
)
);
}
/**
* Implement hook_menu()
*/
function tesla_charge_card_menu() {
$items['chargecard'] = array(
'title' => t('Charge Card'),
'page callback' => '_page_chargecard',
'access arguments' => array('access content'),
//'page arguments' => array(1),
//'file' => 'tesla_charge_card.main.inc',
'type' => MENU_CALLBACK,
);
return $items;
}
function _page_chargecard() {
return theme('tesla_charge_card', $params);
// return "hello world";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment