Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <?php
  2.  
  3. include_once($_SERVER['DOCUMENT_ROOT']. '/' . "config.php");
  4. require_once ($GLOBALS["ob_absolute_path"]."dbo/applicationhelper.class.inc");
  5.  
  6. function online_applications_admin_contents($display) {
  7.  
  8. }
  9.  
  10. function _online_applications_admin_page() {
  11. $output = array();
  12.  
  13.  
  14. $tpl = drupal_get_path('module', 'applications') . '/online_applications_admin_home.tpl.php';
  15. $output = theme_render_template($tpl, $output);
  16. return $output;
  17. }
  18.  
  19. function _online_applications_review_page($appType) {
  20. $output = array();
  21. // $periodID = $helper->GetCurrentPeriodID("LS");
  22. $output['periodID'] = $appType;
  23.  
  24. $tpl = drupal_get_path('module', 'online_applications_admin') . '/online_applications_admin_review.tpl.php';
  25. $output = theme_render_template($tpl, $output);
  26. // return theme('test', array('results' => $appType));
  27.  
  28. return $output;
  29. }
  30.  
  31. // function test_theme() {
  32. // return array(
  33. // 'test' => array(
  34. // 'template' => '',
  35. // 'variables' => array(
  36. // 'results' => NULL,
  37. // )
  38. // ),
  39. // );
  40. // }
  41.  
  42. // function template_preprocess_test(&$variables) {
  43. // $variables['appType'] = 'wtf';
  44. // return $variables;
  45. // }
  46.  
  47. function _online_applications_currentPeriod_page() {
  48. $output = array();
  49. $tpl = drupal_get_path('module', 'online_applications_admin') . '/online_applications_admin_currentPeriod.tpl.php';
  50. $output = theme_render_template($tpl, $output);
  51. return $output;
  52. }
  53.  
  54. function _online_applications_adminHome_page() {
  55. $output = array();
  56. $tpl = drupal_get_path('module', 'online_applications_admin') . '/online_applications_admin_home.tpl.php';
  57. $output = theme_render_template($tpl, $output);
  58. return $output;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement