You are here

function custompage_init in Custom Page 7

Same name and namespace in other branches
  1. 6 custompage.module \custompage_init()

@file Custom Page Module

File

./custompage.module, line 7
Custom Page Module

Code

function custompage_init() {
  $mpath = dirname(__FILE__);
  require_once $mpath . '/custompage_util.inc';
  if (module_exists('context')) {

    //Context module integration
    include_once $mpath . '/custompage.context.inc';
  }

  /*
  Load CSS. Since util functions are useful
  and can be called from non-custompage pages
  as well (e.g. a block), we need to always load
  css, not - just when we are on a custom page.
  */
  $mod_uri = drupal_get_path('module', 'custompage');
  drupal_add_css($mod_uri . '/custompage.css');

  //For Development Only. Do NOT un-comment in production

  //drupal_flush_all_caches();
}