Created
June 25, 2015 05:05
-
-
Save ritcheyer/3f627c53f6bc32a68321 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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