You are here

function fb_canvas_preprocess_html in Drupal for Facebook 7.3

Implements hook_preprocess_html().

Add canvas page specific body classes.

File

./fb_canvas.module, line 354
This module provides support for Canvas page applications. Use Drupal to power traditional Facebook Apps.

Code

function fb_canvas_preprocess_html(&$variables) {
  if (fb_is_canvas()) {
    $variables['classes_array'][] = 'fb_canvas-resizable';
    $variables['classes_array'][] = 'fb-canvas';
  }
}