Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. function fluidproject_ui_options_page_build(&$page) {
  2.   if (!path_is_admin(current_path())) {
  3.     libraries_load('fluid');
  4.     drupal_add_js(drupal_get_path('module', 'fluidproject_ui_options') . '/js/load.js', array('group' => JS_THEME));
  5.     drupal_add_css(drupal_get_path('module', 'fluidproject_ui_options') . '/css/Enactors.css');
  6.     drupal_add_css(drupal_get_path('module', 'fluidproject_ui_options') . '/css/fluid.css', array('group' => CSS_THEME));
  7.         $page['page_top']['fluid'] = array(
  8.       '#weight' => -1000,
  9.       '#markup' => theme('fluidproject'),
  10.         );
  11.   }
  12. }
  13.  
  14. /**
  15.  * Implements hook_theme() to implement the Fluid UI div.
  16.  */
  17. function fluidproject_ui_theme($existing, $type, $theme, $path){
  18.   dpm($path);
  19.   return array(
  20.     'fluidproject'=>array(
  21.       'template'=>$path . 'fluidproject_ui_header',
  22.       'type'=>'theme',
  23.     ),
  24.   );
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement