You are here

function fb_canvas_page_alter in Drupal for Facebook 7.4

Implements hook_page_alter().

Canvas pages usually need extra processing to clean up links.

File

./fb_canvas.module, line 81

Code

function fb_canvas_page_alter(&$page) {
  if (fb_canvas_app() && variable_get(FB_CANVAS_VAR_PROCESS_PAGE, TRUE)) {
    if (!isset($page['#post_render'])) {
      $page['#post_render'] = array();
    }
    $page['#post_render'][] = 'fb_canvas_post_render_page';
  }
}