This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file describes an application. You can have multiple applications | |
| # in the same project. | |
| # The name of this app. Must be unique within a project. | |
| name: drupal | |
| # The runtime the application uses. | |
| type: "php:7.0" | |
| # Configuration of the build of the application. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ danel git:(master) ✗ git push | |
| Counting objects: 4, done. | |
| Delta compression using up to 4 threads. | |
| Compressing objects: 100% (4/4), done. | |
| Writing objects: 100% (4/4), 343 bytes | 0 bytes/s, done. | |
| Total 4 (delta 3), reused 0 (delta 0) | |
| Validating submodules. | |
| Validating configuration files. | |
| Processing activity: **brice@gizra.com** pushed to **Live** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ danel git:(master) ✗ git push | |
| Counting objects: 4, done. | |
| Delta compression using up to 4 threads. | |
| Compressing objects: 100% (4/4), done. | |
| Writing objects: 100% (4/4), 343 bytes | 0 bytes/s, done. | |
| Total 4 (delta 3), reused 0 (delta 0) | |
| Validating submodules. | |
| Validating configuration files. | |
| Processing activity: **brice@gizra.com** pushed to **Live** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function [theme name]_preprocess_page(&$variables) { | |
| $menu = menu_get_item(); | |
| if (in_array($menu['path], 'some url[]') { | |
| $variables['template_files'][] = "page-app" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Add this is idealist_domain.module | |
| // Implements hook_domain_bootstrap_lookup(). | |
| function idealist_domain_domain_bootstrap_lookup($domain) { | |
| // Match en.example.org to default domain (id:0) | |
| if ($domain['subdomain'] == 'etna') { | |
| $domain['domain_id'] = 2; | |
| $domain['site_name'] = 'ETNA 2020'; | |
| } | |
| return $domain; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // DEFINE RETURN VALUES | |
| define(R_ELEGAL_INPUT, -1); | |
| define(R_NOT_VALID, -2); | |
| define(R_VALID, 1); | |
| function ValidateID($str) | |
| { | |
| //Convert to string, in case numeric input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ################################################################################ | |
| # | |
| # This script will sync Danel profile with the platform profile. | |
| # | |
| # | |
| ################################################################################ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @file | |
| * Drupal needs this blank file. | |
| */ | |
| /** | |
| * Implement hook_menu() | |
| * | |
| * User to test the function. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Composer's auto-loading functionality | |
| // https://github.com/tijsverkoyen/CssToInlineStyles | |
| require libraries_get_path('css-to-inline') . "/vendor/autoload.php"; | |
| $html = "<span> Some html template</span>"; | |
| // Set inline CSS. | |
| $css_file_path = drupal_get_path('theme', 'bootstrap_subtheme') . '/bootstrap/css/email.css'; | |
| $css_content = file_get_contents($css1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| */ | |
| protected function prepareImages($value) { | |
| $images = parent::fileProcess($value); | |
| $images_clean = array(); | |
| dpm($value); | |
| foreach ($images as $image) { | |
| $image['self'] = image_style_url('business_image', $value['uri']); |
NewerOlder