You are here

function dynamic_background_theme in Dynamic Background 7

Same name and namespace in other branches
  1. 6 includes/upload.form.inc \dynamic_background_theme()
  2. 7.2 dynamic_background.module \dynamic_background_theme()

Implements hook_theme(). This defines the default theming function for the background_upload_form element and the weight administration form.

File

./dynamic_background.module, line 115
This module enables administrators to upload images used as background on the site. The selected background image link is exposed as either $background in the page.tpl file or as /background.css.

Code

function dynamic_background_theme() {
  return array(
    'background_upload_form' => array(
      'render element' => 'element',
    ),
    'dynamic_background_admin_weight_form' => array(
      'render element' => 'form',
      'file' => 'includes/weight.admin.inc',
    ),
  );
}