You are here

Pet Areas

Submitted by Peter on Sat, 2005-09-17 00:00

The pet area extension currently provides a colour for each area of a Web site. Future enhancements will change the CSS for each area.

You define your selection of colours using Pet Colours. You then define areas in pet_areas using a colour selection list built from pet_colours.

Install

  1. Install and test pet.
  2. Install and test pet_colours.
  3. Download pet_areas.zip. If your browser does not give you the option to save the file then try clicking the right mouse button. pet_areas.zip contains the following files.
    • pet_areas.class
    • pet_areas.inc
    • pet_areas.mysql
  4. Expand the zip file into your modules/pet/ directory.
  5. This uses database table pet_areas and some variables with a prefix of pet_areas_. Run the SQL from pet_areas.mysql in phpmyadmin or equivalent. The SQL gives the table the prefix of drupal_. you may have to change the prefix for your site.
  6. Visit administer > pet and switch on pet.
  7. Visit administer > pet > areas and define some areas.

pet_areas.class is used by pet.class for every page when pet_areas is turned on. pet_areas.inc is used by pet.module and only when you are in the administration area of your Web site.