18.10.2016 Views

Drupal 7 Module Development

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Installation Profiles<br />

The name and description fields from the store.info file are used in the first step<br />

of the installer, as seen in the following image:<br />

If there is only one profile present in the /profiles directory, <strong>Drupal</strong> will<br />

automatically select that profile and move on to the next step.<br />

The .profile file serves two purposes. First, it enables customizations to the<br />

installation process. These changes include adding tasks to the installer, such as<br />

adding a custom form, or altering the default installation tasks.<br />

The second purpose of the .profile file is to act as a custom module for the site.<br />

After the installation is complete, the profile acts as any other module on the site,<br />

except that it cannot be disabled. It can run <strong>Drupal</strong> hooks, alter forms, and do<br />

anything else a normal module can do.<br />

[ 346 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!