PROFILES IN DRUPAL
(Well, sort of…)
STAGE FRIGHT
• Anxiety, fear […] by the requirement to perform
in front of an audience
• "Anxiety usually has physical symptoms that may
include a racing heart, a dry mouth, a shaky voice,
blushing, trembling, sweating, lightheadedness, and
nausea".
Profiles in Drupal - Drupal Day Aveiro
Profiles in Drupal - Drupal Day Aveiro
http://marzeelabs.org
We are a distributed company with main offices
in Porto and Setúbal and virtual offices in London
and Barcelona, but you can always find us all
around Europe.
We provide technical leadership in large complex
projects that require more than just your usual
tech implementation.We consult, follow up, code-
review and assure the quality of the final product.
MARZEE LABS
ARTE G.E.I.E.
http://www.arte.tv
ARTE is a public Franco-German TV
network, a European channel, that
promotes programming in the areas of
culture and the arts.
http://marzeelabs.org/blog/2015-01-06-drupal-profiles
All your custom code and modules, themes and
libraries to be installed should be bundled as an
installation profile, so your site can be installed over
and over.
If you haven't started organizing your sites as Drupal
profiles, you probably should.
STEP 1
The .make file
; mzprofile.make
projects[link][version] = 1.3
projects[link][subdir] = "contrib"
STEP 1
The .make file
; mzprofile.make
projects[link][version] = 1.3
projects[link][subdir] = "contrib"
; Provide the original_url when loading the field.
; @see https://www.drupal.org/node/1475790#comment-7743415
projects[link][patch][] = "http://www.drupal.org/files/
7.x-1.x-_link_sanitize-bandaid-1475790-16.diff"
STEP 1
The .make file
; mzprofile.make
projects[link][download][type] = git
projects[link][download][branch] = 7.x-1.x
projects[link][download][revision] = 7dc306c
projects[link][subdir] = "contrib"
STEP 2
The .info file
name = mzprofile
description = Install with common features for this awesome
project pre-configured.
core = 7.x
dependencies[] = link
STEP 3
The .profile file
<?php
/**
* Implements hook_form_FORM_ID_alter() for install_configure_form().
*
* Allows the profile to alter the site configuration form.
*/
function mzprofile_form_install_configure_form_alter(&$form, $form_state) {
// Pre-populate the site name with the server name.
$form['site_information']['site_name']['#default_value'] =
$_SERVER['SERVER_NAME'];
// Set default login, password and all that stuff to make install even
faster.
$admin_mail = 'admin@example.org';
$form['site_information']['site_mail']['#default_value'] = $admin_mail;
$form['admin_account']['account']['name']['#default_value'] = 'admin';
$form['admin_account']['account']['mail']['#default_value'] = $admin_mail;
$form['update_notifications']['update_status_module']['#default_value'][1] =
0;
$form['update_notifications']['update_status_module']['#default_value'][2] =
0;
}
STEP 3.5
Drupal core
; drupal-org-core.make
api = 2
core = 7.x
projects[drupal][type] = core
projects[drupal][version] = 7.31
; Make profiles inherit from each other
; Allows to use MZ as a base profile including it's modules
; @see https://drupal.org/node/2067229
projects[drupal][patch][] = "http://drupal.org/files/
2067229-2-inheritable-profiles.patch"
STEP 4
Drush it!
FULL
$ drush make profiles/mzprofile/mzprofile.make .
NO-CORE
$ drush make profiles/mzprofile/mzprofile.make —-no-core .
JUST ONE MODULE (OR PROFILE)
$ drush make profiles/mzprofile/mzprofile.make —-
projects=link —-no-core .
BUT!
Can it run Crysis?
7 DRUPAL PLATFORMS
• http://concert.arte.tv
• http://cinema.arte.tv
• http://creative.arte.tv
• http://future.arte.tv
• http://info.arte.tv
• http://sites.arte.tv
• http://www.theoperaplatform.eu
1 PROFILE
TO RULETHEM ALL
name = alw
description = Install with common features for the Arte
Live Web
core = 7.x
; Inherit Foundation base profile
; Needs a Drupal core patch (see foundation makefiles)
; ====================================================
base = foundation
PLEASE
Think of the kittens…
And I approve this message 👍
Luís is our all rounder. He is experienced
in PHP, JS, CSS and all in between. Has an
extended knowledge of pop culture and
always has an opinion about the topic at
hand.
MY NAME IS LUIS

More Related Content

PPTX
Bridge the gap alerts
PDF
тренды избирательных кампаний
PDF
Exchange 2013 coexistence | Autodiscover infrastructure | Part 2/2 | 12#23
PPTX
Ipronomicombinati bas2
PPTX
Parole composte
PPT
La testa di stampa GraphJet Zanasi copie i suoi primi 10 anni!
PPTX
Cisco and SUSE Linux: The perfect platform for SAP
PDF
Generic Open Source Governance for Governments By the Dutch Provinces
Bridge the gap alerts
тренды избирательных кампаний
Exchange 2013 coexistence | Autodiscover infrastructure | Part 2/2 | 12#23
Ipronomicombinati bas2
Parole composte
La testa di stampa GraphJet Zanasi copie i suoi primi 10 anni!
Cisco and SUSE Linux: The perfect platform for SAP
Generic Open Source Governance for Governments By the Dutch Provinces

Viewers also liked (14)

PDF
Bet-the-Farm User Experience
PPTX
Catastrophes
PPTX
ORGANIZATIONS CHART
PDF
The importance of Exchange 2013 CAS in Exchange 2013 coexistence | Part 1/2 |...
PDF
MathsGenius Leadership Institute Application 2014
DOCX
Informe analisis
PDF
Maximizing the impact of UX in an agile environment: Mixing agile and lean UX
PPTX
Week one
PPTX
Congiuntivo int 1_parte 1
PPTX
Imperativo lei
DOC
Dharmendra Sharma
PPTX
AdvantageNFP CHASE 2013 Does Every Cloud Have a Silver Lining Presentation
PPSX
20121022 het abc van sociale media mariakerke
PPT
Toowoomba Regional Council sports tourism-project_presentation_for_sport_and_...
Bet-the-Farm User Experience
Catastrophes
ORGANIZATIONS CHART
The importance of Exchange 2013 CAS in Exchange 2013 coexistence | Part 1/2 |...
MathsGenius Leadership Institute Application 2014
Informe analisis
Maximizing the impact of UX in an agile environment: Mixing agile and lean UX
Week one
Congiuntivo int 1_parte 1
Imperativo lei
Dharmendra Sharma
AdvantageNFP CHASE 2013 Does Every Cloud Have a Silver Lining Presentation
20121022 het abc van sociale media mariakerke
Toowoomba Regional Council sports tourism-project_presentation_for_sport_and_...
Ad

Similar to Profiles in Drupal - Drupal Day Aveiro (20)

PPTX
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
PDF
Building and Maintaining a Distribution in Drupal 7 with Features
PDF
Drupal Day 2012 - Automating Drupal Development: Make!les, Features and Beyond
PDF
Drupal8 simplepage v2
ODP
20120314 voipdrupal-hands-on-webinar
PDF
Building Creative Product Extensions with Experience Manager
PDF
Welcome aboard the team
PDF
Create a landing page
PPTX
Building Creative Product Extensions with Experience Manager
PPTX
How to best setup SharePoint 2013, Web Apps, Workflow Manager with Powershell
KEY
Rapid Prototyping FTW!!!
PPTX
The Right Way to Develop Website & eCommerce Features
PDF
Documentation Insight技术架构与开发历程
PDF
Use Web Skills To Build Mobile Apps
PDF
Your Business. Your Language. Your Code - dpc13
PDF
Drupal intro for Symfony developers
PDF
OpenERP Technical Memento V0.7.3
PDF
Hue: Big Data Web applications for Interactive Hadoop at Big Data Spain 2014
ODP
Drupal distributions - how to build them
KEY
Automating Drupal Development: Makefiles, features and beyond
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
Building and Maintaining a Distribution in Drupal 7 with Features
Drupal Day 2012 - Automating Drupal Development: Make!les, Features and Beyond
Drupal8 simplepage v2
20120314 voipdrupal-hands-on-webinar
Building Creative Product Extensions with Experience Manager
Welcome aboard the team
Create a landing page
Building Creative Product Extensions with Experience Manager
How to best setup SharePoint 2013, Web Apps, Workflow Manager with Powershell
Rapid Prototyping FTW!!!
The Right Way to Develop Website & eCommerce Features
Documentation Insight技术架构与开发历程
Use Web Skills To Build Mobile Apps
Your Business. Your Language. Your Code - dpc13
Drupal intro for Symfony developers
OpenERP Technical Memento V0.7.3
Hue: Big Data Web applications for Interactive Hadoop at Big Data Spain 2014
Drupal distributions - how to build them
Automating Drupal Development: Makefiles, features and beyond
Ad

Recently uploaded (20)

PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
PPTX
Mathew Digital SEO Checklist Guidlines 2025
PPTX
Internet Safety for Seniors presentation
PPT
250152213-Excitation-SystemWERRT (1).ppt
PDF
Lean-Manufacturing-Tools-Techniques-and-How-To-Use-Them.pdf
PPTX
Database Information System - Management Information System
PPT
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
PPTX
AI_Cyberattack_Solutions AI AI AI AI .pptx
PDF
Understand the Gitlab_presentation_task.pdf
PDF
📍 LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1 TERPOPULER DI INDONESIA ! 🌟
PDF
Exploring The Internet Of Things(IOT).ppt
PPTX
t_and_OpenAI_Combined_two_pressentations
PPTX
Reading as a good Form of Recreation
PDF
BIOCHEM CH2 OVERVIEW OF MICROBIOLOGY.pdf
PDF
Buy Cash App Verified Accounts Instantly – Secure Crypto Deal.pdf
PPTX
1402_iCSC_-_RESTful_Web_APIs_--_Josef_Hammer.pptx
PDF
Alethe Consulting Corporate Profile and Solution Aproach
PPTX
The-Importance-of-School-Sanitation.pptx
PPTX
IPCNA VIRTUAL CLASSES INTERMEDIATE 6 PROJECT.pptx
PDF
Alethe Consulting Corporate Profile and Solution Aproach
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
Mathew Digital SEO Checklist Guidlines 2025
Internet Safety for Seniors presentation
250152213-Excitation-SystemWERRT (1).ppt
Lean-Manufacturing-Tools-Techniques-and-How-To-Use-Them.pdf
Database Information System - Management Information System
FIRE PREVENTION AND CONTROL PLAN- LUS.FM.MQ.OM.UTM.PLN.00014.ppt
AI_Cyberattack_Solutions AI AI AI AI .pptx
Understand the Gitlab_presentation_task.pdf
📍 LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1 TERPOPULER DI INDONESIA ! 🌟
Exploring The Internet Of Things(IOT).ppt
t_and_OpenAI_Combined_two_pressentations
Reading as a good Form of Recreation
BIOCHEM CH2 OVERVIEW OF MICROBIOLOGY.pdf
Buy Cash App Verified Accounts Instantly – Secure Crypto Deal.pdf
1402_iCSC_-_RESTful_Web_APIs_--_Josef_Hammer.pptx
Alethe Consulting Corporate Profile and Solution Aproach
The-Importance-of-School-Sanitation.pptx
IPCNA VIRTUAL CLASSES INTERMEDIATE 6 PROJECT.pptx
Alethe Consulting Corporate Profile and Solution Aproach

Profiles in Drupal - Drupal Day Aveiro

  • 2. STAGE FRIGHT • Anxiety, fear […] by the requirement to perform in front of an audience • "Anxiety usually has physical symptoms that may include a racing heart, a dry mouth, a shaky voice, blushing, trembling, sweating, lightheadedness, and nausea".
  • 5. http://marzeelabs.org We are a distributed company with main offices in Porto and Setúbal and virtual offices in London and Barcelona, but you can always find us all around Europe. We provide technical leadership in large complex projects that require more than just your usual tech implementation.We consult, follow up, code- review and assure the quality of the final product. MARZEE LABS
  • 6. ARTE G.E.I.E. http://www.arte.tv ARTE is a public Franco-German TV network, a European channel, that promotes programming in the areas of culture and the arts.
  • 7. http://marzeelabs.org/blog/2015-01-06-drupal-profiles All your custom code and modules, themes and libraries to be installed should be bundled as an installation profile, so your site can be installed over and over. If you haven't started organizing your sites as Drupal profiles, you probably should.
  • 8. STEP 1 The .make file ; mzprofile.make projects[link][version] = 1.3 projects[link][subdir] = "contrib"
  • 9. STEP 1 The .make file ; mzprofile.make projects[link][version] = 1.3 projects[link][subdir] = "contrib" ; Provide the original_url when loading the field. ; @see https://www.drupal.org/node/1475790#comment-7743415 projects[link][patch][] = "http://www.drupal.org/files/ 7.x-1.x-_link_sanitize-bandaid-1475790-16.diff"
  • 10. STEP 1 The .make file ; mzprofile.make projects[link][download][type] = git projects[link][download][branch] = 7.x-1.x projects[link][download][revision] = 7dc306c projects[link][subdir] = "contrib"
  • 11. STEP 2 The .info file name = mzprofile description = Install with common features for this awesome project pre-configured. core = 7.x dependencies[] = link
  • 12. STEP 3 The .profile file <?php /** * Implements hook_form_FORM_ID_alter() for install_configure_form(). * * Allows the profile to alter the site configuration form. */ function mzprofile_form_install_configure_form_alter(&$form, $form_state) { // Pre-populate the site name with the server name. $form['site_information']['site_name']['#default_value'] = $_SERVER['SERVER_NAME']; // Set default login, password and all that stuff to make install even faster. $admin_mail = 'admin@example.org'; $form['site_information']['site_mail']['#default_value'] = $admin_mail; $form['admin_account']['account']['name']['#default_value'] = 'admin'; $form['admin_account']['account']['mail']['#default_value'] = $admin_mail; $form['update_notifications']['update_status_module']['#default_value'][1] = 0; $form['update_notifications']['update_status_module']['#default_value'][2] = 0; }
  • 13. STEP 3.5 Drupal core ; drupal-org-core.make api = 2 core = 7.x projects[drupal][type] = core projects[drupal][version] = 7.31 ; Make profiles inherit from each other ; Allows to use MZ as a base profile including it's modules ; @see https://drupal.org/node/2067229 projects[drupal][patch][] = "http://drupal.org/files/ 2067229-2-inheritable-profiles.patch"
  • 14. STEP 4 Drush it! FULL $ drush make profiles/mzprofile/mzprofile.make . NO-CORE $ drush make profiles/mzprofile/mzprofile.make —-no-core . JUST ONE MODULE (OR PROFILE) $ drush make profiles/mzprofile/mzprofile.make —- projects=link —-no-core .
  • 15. BUT! Can it run Crysis?
  • 16. 7 DRUPAL PLATFORMS • http://concert.arte.tv • http://cinema.arte.tv • http://creative.arte.tv • http://future.arte.tv • http://info.arte.tv • http://sites.arte.tv • http://www.theoperaplatform.eu
  • 17. 1 PROFILE TO RULETHEM ALL name = alw description = Install with common features for the Arte Live Web core = 7.x ; Inherit Foundation base profile ; Needs a Drupal core patch (see foundation makefiles) ; ==================================================== base = foundation
  • 18. PLEASE Think of the kittens…
  • 19. And I approve this message 👍 Luís is our all rounder. He is experienced in PHP, JS, CSS and all in between. Has an extended knowledge of pop culture and always has an opinion about the topic at hand. MY NAME IS LUIS