Creating profiles

Profiles consist of a .info file and a .profile (pronounced "dot-profile") file. This is similar to how modules are structured, as described in Chapter 2.

The .info file for a profile looks just like a .info file for a module and contains the same information.

name = Example Store
description = "An example store installation profile."
version = VERSION
core = 7.x
files[] = store.profile
files[] = store.install.inc
files[] = store.install

The name and description fields from the store.info file are used in the first step of the installer, as seen in the following image:

Creating profiles

If there is only one profile present in the /profiles directory, ...

Get Drupal 7 Module Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.