You are here

function static_page_page_delivery_callback_alter in Static Page 7

File

./static_page.module, line 19

Code

function static_page_page_delivery_callback_alter(&$delivery_callback) {
  $router_item = menu_get_item();

  //print debug($router_item);
  if ($router_item['path'] == 'node/%') {
    $node = menu_get_object();
    $default_types = variable_get('static_page_types', array());

    //print debug($default_types);
    if (isset($node->type) && in_array($node->type, $default_types)) {
      $delivery_callback = 'static_page_deliver_html_page';
    }
  }
}