You are here

function bg_image_ui_init in Background Images 7

Implements hook_init()

File

bg_image_ui/bg_image_ui.module, line 62

Code

function bg_image_ui_init() {
  $nid = bg_image_ui_page_has_bg_image();

  // Apply the background image if the nid is not FALSE
  if ($nid !== FALSE) {
    bg_image_add_background_image_from_node($nid);
  }
}