Problem/Motivation
The standard_install()
function from the Standard instlal profile is quite messy. It's difficult to maintain, and difficult to build upon. When people make a new install profile, they use that as a template, and it results in many poorly documented install profiles in the contrib world.
Proposed resolution
Switch over to two different patterns rather than having one big standard_install
function:
- Configuration management through .yml files for configuration
- Introduce the use of
hook_install_tasks()
for non-configuration things to allow splitting thestandard_install
into grouped functionality
Remaining tasks
- Review
- RTBC
User interface changes
No user interface changes here.
API changes
standard_install()
is deprecated in place of standard_install_tasks()
.
Original report by Rob Loach
Splitting standard_install
into a number of hook_install_tasks()
will clean up the function, and introduce some sanity in the install process.