drupal / mutamad
Mutamad is a Drupal 11 distribution by iSpectra: a thin installation profile over a recipe-composed site template — core Standard with Drupal CMS's admin UI, media, a rich editor, forms and email, in Mutamad's branding.
Requires
- drupal/config_language_lock: ^1.0.1
- drupal/core: ~11.4.14
- drupal/mutamad_multilingual: ~1.0.0
- drupal/mutamad_starter: ~1.0.0
- drupal/recipe_installer_kit: ~1
- drupal/recipe_locale: ^1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
- drupal/core: 11.4.x-dev
- drupal/core-recommended: 11.4.x-dev
Replaces
None
This package is not auto-updated.
Last update: 2026-12-03 16:40:45 UTC
README
Mutamad
The Mutamad installation profile.
Built and maintained by iSpectra — Imagine. Implement. Inspire. See iSpectra on drupal.org.
This profile is thin on purpose. It owns the installer flow, the installer theme and its install tasks, and that is all:
- the install language: Arabic or English, and the site gets both,
mutamad_include_settings(),mutamad_setup_private_files(),mutamad_generate_tfa_key(),mutamad_configure_html5_validation(),mutamad_remove_unwanted_modules(),mutamad_translate_config(),- the Name your site and Create your account steps: a heading and a line of text on each, and the defaults and guidance on the administrator account.
mutamad_installer_theme (in theme/) styles the installer and nothing else;
it is never enabled on the finished site. There is no front-end theme — the site
template installs Olivero for the front end and Gin for administration.
All configuration lives in recipes, starting with
mutamad_starter. The reason
is auditability: a recipe can be applied to a bare site and its resulting config
asserted in a test. A profile's install hooks cannot.
Install
composer create-project "drupal/mutamad_project:^1.0@alpha" my-site
cd my-site
ddev start && ddev install-mutamad
The install tasks, and why they exist
mutamad_include_settings() — makes sure settings.php loads the project
template's settings.mutamad.php: private files outside the web root, the
session lifetimes and the rest of Mutamad's hardened settings. The template
appends that include to default.settings.php, which reaches settings.php only
when the installer creates it from that file. DDEV and most hosting control
panels write their own settings.php, and there Mutamad's settings were never
loaded — silently. So the include is added when it is missing, and loaded into
the running install too. It runs before the recipes.
mutamad_setup_private_files() — makes sure private file storage exists,
outside the web root (NCA ECC 2-7-2). The project template's settings fragment
points file_private_path at ../private-files, but DDEV and most hosting
control panels write their own settings.php without it. So this task sets the
path when nothing else has, creates the directory, and writes Drupal's
.htaccess into it. It runs before the recipes, because core refuses the
private file scheme unless the directory is already usable. An operator who
chose a path keeps it.
The install language
A Mutamad site is installed in Arabic or English and always has both. The language it is installed in is its default from the first step, before any content type or field exists — Drupal fixes a field's language when the field is created.
- The installer offers those two languages only: the language dropdown in the
installer's header (
mutamad_installer_theme), and core's Choose language list where it appears. Recipe Installer Kit starts in English; choosing Arabic reloads the installer in Arabic, with core's, the kit's and every module's translations downloaded from drupal.org. keep_english: truestops core deleting English at the end of an Arabic install.mutamad_multilingual, applied bymutamad_starter, adds the other language and gives both a URL prefix:/ar/…and/en/…. The site then has two languages, so core fetches every project's translations for both from drupal.org at the end of installation. What drupal.org does not translate yet stays English until it is translated on localize.drupal.org.drush site:install mutamad --locale=ar(oren) chooses it from the command line;ddev install-mutamad --lang=endoes the same.
Mutamad's own installer screens are in Arabic from the first step: the
profile ships their translation, translations/mutamad-installer.ar.po, so
it needs neither a release on localize.drupal.org nor a network that can
reach it. Once the mutamad project is translated there, Recipe Installer
Kit downloads that file too, and it takes precedence.
Translations, the way the Drupal CMS installer does them. Before any
recipe runs, the profile installs Config Language Lock, locked to the
installation language, and Recipe Locale,
which records every recipe applied so locale downloads its translation from
localize.drupal.org like a module's. At the end,
mutamad_install_finish_translations()
replaces core's step with the same three batches as Drupal CMS: every
project's translations, the recipes' included; Config Language Lock's rewrite
of the configuration into the default language; and locale's translation of
the configuration modules, themes and recipes ship.
mutamad_translate_config() — fills in what those batches leave English:
text a recipe sets with config actions, which has no shipped original for
locale to compare with. It walks every translatable configuration value and
looks up its Arabic: on an
Arabic site it becomes the value and the English is kept as the en
translation; on an English site it becomes the ar translation. Machine
names, serialized values and the site's name and slogan are left alone.
mutamad_configure_html5_validation() — writes
$settings['enable_html5_validation'] = FALSE; to settings.php unless it is
already set, clearing the status-report warning about the Drupal 12 default.
It is a setting, not config, so a recipe cannot do it.
mutamad_generate_tfa_key() — generates the key that encrypts every
user's MFA secret (mutamad_crypto): 32 random bytes in
<private files>/mutamad-keys/tfa.key, outside the web root and the database,
readable by the web server and its group only. A key is a secret, not
configuration, so no recipe can ship it. It runs before the recipes, and never
replaces an existing key — that would lock every enrolled user out.
mutamad_remove_unwanted_modules() — a recipe cannot uninstall a module or
skip one from a sub-recipe, so these are removed at the end of installation,
before core's final cache flush:
- BigPipe, which core's standard recipe brings in through
core_recommended_performance. Page Cache and Dynamic Page Cache stay. - Drupical and the drupal.org announcements feed, from Drupal CMS's admin UI. Both call drupal.org from the site and show what comes back on the dashboard — an outbound call from a government network (NCA ECC 2-5-3-3). Their two blocks leave the welcome dashboard; the dashboard stays. The Update module also calls drupal.org and is kept on purpose: it is how an operator learns a security release exists.
Tested through the browser installer, where uninstalling the language modules the same way once broke the login page; these modules do not.
These run once, at installation. Applying again, on an installed site, a recipe
that includes them brings them back — mutamad_admin (through Drupal CMS's
admin UI) Drupical and the announcements feed, mutamad_starter (through
core's standard recipe) BigPipe — so a Mutamad site is not updated by
re-applying its recipes whole. If one is, mutamad-verify reports Drupical or
the announcements feed (ECC 2-5-3-3), and
drush pm:uninstall drupical announcements_feed big_pipe
removes them again.
The administrator account form defaults the username to webmaster
rather than admin, the first name a credential-stuffing run tries, and asks
for a named administrator's mailbox rather than a shared one, so that what the
account does can be traced to a person (NCA ECC 2-2).
Layout Builder and Layout Discovery cannot be removed the same way: core Navigation, the Dashboard and Navigation Extra Tools require them.
Licence
GPL-2.0-or-later.
Maintainers
Built and maintained by iSpectra (on drupal.org).
