Merge branch 'master' of https://figureslibres.io/gogs/bachir/drupal-reha
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
/web/sites/*/settings.local.php
|
/web/sites/*/settings.local.php
|
||||||
/web/sites/*/services*.yml
|
/web/sites/*/services*.yml
|
||||||
/web/sites/*/salt.txt
|
/web/sites/*/salt.txt
|
||||||
/web/sites/development.services.yml
|
/web/sites/*/development.services.yml
|
||||||
|
|
||||||
# Ignore Drupal's file directory
|
# Ignore Drupal's file directory
|
||||||
/web/sites/*/files/
|
/web/sites/*/files/
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ langcode: fr
|
|||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
module:
|
module:
|
||||||
|
- block_class
|
||||||
- config_pages
|
- config_pages
|
||||||
theme:
|
theme:
|
||||||
- reha
|
- reha
|
||||||
@@ -14,7 +15,7 @@ provider: null
|
|||||||
plugin: config_pages_block
|
plugin: config_pages_block
|
||||||
settings:
|
settings:
|
||||||
id: config_pages_block
|
id: config_pages_block
|
||||||
label: Contact
|
label: Contacts
|
||||||
label_display: visible
|
label_display: visible
|
||||||
provider: config_pages
|
provider: config_pages
|
||||||
config_page_type: contact
|
config_page_type: contact
|
||||||
|
|||||||
@@ -19,138 +19,138 @@ settings:
|
|||||||
label_display: '0'
|
label_display: '0'
|
||||||
provider: social_media_links
|
provider: social_media_links
|
||||||
platforms:
|
platforms:
|
||||||
|
linkedin:
|
||||||
|
value: company/plan-urbanisme-construction-architecture-puca
|
||||||
|
description: ''
|
||||||
|
weight: '-43'
|
||||||
twitter:
|
twitter:
|
||||||
value: reha
|
value: puca_gouv
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-47'
|
weight: '-42'
|
||||||
youtube:
|
youtube:
|
||||||
value: reha
|
value: channel/UCOC9-aGNPangqvUXMraAkxw
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-46'
|
weight: '-41'
|
||||||
instagram:
|
instagram:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-43'
|
weight: '-40'
|
||||||
xing:
|
xing:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-42'
|
weight: '-39'
|
||||||
contact:
|
contact:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-41'
|
weight: '-38'
|
||||||
rss:
|
rss:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-40'
|
weight: '-37'
|
||||||
tiktok:
|
tiktok:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-39'
|
weight: '-36'
|
||||||
mastodon:
|
mastodon:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-38'
|
weight: '-35'
|
||||||
amazon:
|
amazon:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-37'
|
weight: '-34'
|
||||||
bitbucket:
|
bitbucket:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-36'
|
weight: '-33'
|
||||||
patreon:
|
patreon:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-35'
|
weight: '-32'
|
||||||
vkontakte:
|
vkontakte:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-34'
|
weight: '-31'
|
||||||
slideshare:
|
slideshare:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-33'
|
weight: '-30'
|
||||||
github:
|
github:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-32'
|
weight: '-29'
|
||||||
behance:
|
behance:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-31'
|
weight: '-28'
|
||||||
vimeo:
|
vimeo:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-30'
|
weight: '-27'
|
||||||
telegram:
|
telegram:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-29'
|
weight: '-26'
|
||||||
youtube_channel:
|
youtube_channel:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-28'
|
weight: '-25'
|
||||||
googleplus:
|
googleplus:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-27'
|
weight: '-24'
|
||||||
facebook:
|
facebook:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-26'
|
weight: '-23'
|
||||||
drupal:
|
drupal:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-25'
|
weight: '-22'
|
||||||
flickr:
|
flickr:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-24'
|
weight: '-21'
|
||||||
gitlab:
|
gitlab:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-23'
|
weight: '-20'
|
||||||
tumblr:
|
tumblr:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-22'
|
weight: '-19'
|
||||||
pinterest:
|
pinterest:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-21'
|
weight: '-18'
|
||||||
email:
|
email:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-20'
|
weight: '-17'
|
||||||
goodreads:
|
goodreads:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-19'
|
weight: '-16'
|
||||||
googleplay:
|
googleplay:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-18'
|
weight: '-15'
|
||||||
whatsapp:
|
whatsapp:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-17'
|
weight: '-14'
|
||||||
meetup:
|
meetup:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-16'
|
weight: '-13'
|
||||||
website:
|
website:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-10'
|
weight: '-12'
|
||||||
glassdoor:
|
glassdoor:
|
||||||
value: ''
|
value: ''
|
||||||
description: ''
|
description: ''
|
||||||
weight: '-9'
|
weight: '-11'
|
||||||
linkedin:
|
|
||||||
value: reha
|
|
||||||
description: ''
|
|
||||||
weight: '7'
|
|
||||||
appearance:
|
appearance:
|
||||||
orientation: h
|
orientation: h
|
||||||
show_name: 0
|
show_name: 0
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
fields:
|
fields:
|
||||||
field_lien:
|
field_lien:
|
||||||
-
|
-
|
||||||
uri: 'http://reha.figli.io'
|
uri: 'internal:/'
|
||||||
title: ''
|
title: ''
|
||||||
options: { }
|
options: { }
|
||||||
field_logo:
|
field_logo:
|
||||||
@@ -126,7 +126,7 @@ bc48e271-75cf-4c3f-a4aa-ecc3c573c060:
|
|||||||
format: wysiwyg
|
format: wysiwyg
|
||||||
field_node_link:
|
field_node_link:
|
||||||
-
|
-
|
||||||
uri: 'internal:/user/register?destination=/node/add/operation'
|
uri: 'internal:/user/register?destination=/node/add/operation?destination=/mes_operations'
|
||||||
title: 'Proposer un site'
|
title: 'Proposer un site'
|
||||||
options: { }
|
options: { }
|
||||||
e05f593a-38ab-4dba-ad1c-9ae23c1222a9:
|
e05f593a-38ab-4dba-ad1c-9ae23c1222a9:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
6af09942-a538-4c95-beb4-05ef50e8179a:
|
6af09942-a538-4c95-beb4-05ef50e8179a:
|
||||||
uuid: 6af09942-a538-4c95-beb4-05ef50e8179a
|
uuid: 6af09942-a538-4c95-beb4-05ef50e8179a
|
||||||
menu_name: footer
|
menu_name: footer
|
||||||
title: Contact
|
title: Contacts
|
||||||
parent: ''
|
parent: ''
|
||||||
link:
|
link:
|
||||||
-
|
-
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ module:
|
|||||||
persistent_login: 0
|
persistent_login: 0
|
||||||
phone_number: 0
|
phone_number: 0
|
||||||
redis: 0
|
redis: 0
|
||||||
|
reha_mod: 0
|
||||||
responsive_image: 0
|
responsive_image: 0
|
||||||
rules: 0
|
rules: 0
|
||||||
search_api: 0
|
search_api: 0
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ notify_send_hour: '9'
|
|||||||
notify_attempts: '5'
|
notify_attempts: '5'
|
||||||
notify_include_updates: '1'
|
notify_include_updates: '1'
|
||||||
notify_unpublished: '1'
|
notify_unpublished: '1'
|
||||||
notify_watchdog: '3'
|
notify_watchdog: '0'
|
||||||
notify_weightur: '20'
|
notify_weightur: '20'
|
||||||
notify_reg_default: '0'
|
notify_reg_default: '0'
|
||||||
notify_def_node: '0'
|
notify_def_node: '0'
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ display:
|
|||||||
plugin_id: text
|
plugin_id: text
|
||||||
empty: true
|
empty: true
|
||||||
content:
|
content:
|
||||||
value: '<a href="/node/add/operation">Proposer un autre site</a>'
|
value: '<a href="/node/add/operation?destination=/mes_operations">Proposer un autre site</a>'
|
||||||
format: wysiwyg
|
format: wysiwyg
|
||||||
tokenize: false
|
tokenize: false
|
||||||
display_extenders: { }
|
display_extenders: { }
|
||||||
@@ -397,6 +397,7 @@ display:
|
|||||||
- 'user.node_grants:view'
|
- 'user.node_grants:view'
|
||||||
- user.roles
|
- user.roles
|
||||||
tags:
|
tags:
|
||||||
|
- 'config:core.entity_view_display.node.operation.compact'
|
||||||
- 'config:core.entity_view_display.node.operation.default'
|
- 'config:core.entity_view_display.node.operation.default'
|
||||||
- 'config:core.entity_view_display.node.operation.teaser'
|
- 'config:core.entity_view_display.node.operation.teaser'
|
||||||
- 'config:core.entity_view_display.node.static.content_no_title'
|
- 'config:core.entity_view_display.node.static.content_no_title'
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
name: reha_mod
|
||||||
|
type: module
|
||||||
|
description: Provides additional functionality for the site.
|
||||||
|
package: Custom
|
||||||
|
core_version_requirement: ^9 || ^10
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Primary module hooks for reha module.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
function reha_mod_form_user_register_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
|
||||||
|
$form['actions']['submit']['#value'] = "valider";
|
||||||
|
}
|
||||||
|
|
||||||
|
function reha_mod_form_user_login_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
|
||||||
|
$form['persistent_login']['#title'] = "rester connecté";
|
||||||
|
}
|
||||||
|
|
||||||
|
function reha_mod_form_node_operation_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
|
||||||
|
$route = \Drupal::routeMatch();
|
||||||
|
$params = $route->getParameters();
|
||||||
|
/** @var Drupal\node\Entity\NodeType **/
|
||||||
|
$node_type = $route->getParameter('node_type');
|
||||||
|
$type = $node_type->id();
|
||||||
|
if($type === 'operation'){
|
||||||
|
$form['field_adresse']['widget'][0]['#type'] = 'container';
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user