This file contains 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 themename_panels_default_style_render_region($vars) { | |
$output = ''; | |
$output .= implode('', $vars['panes']); | |
return $output; | |
} |
This file contains 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
/** | |
* Implements hook_theme() | |
*/ | |
function example_theme() { | |
return array( | |
'bootstrap_grid' => array( | |
'render element' => 'elements' | |
), | |
); | |
} |
This file contains 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 my_custom_form_callback($type = 'page') { | |
global $user; | |
module_load_include('inc', 'node', 'node.pages'); | |
$node = (object) array( | |
'uid' => $user->uid, | |
'name' => (isset($user->name) ? $user->name : ''), | |
'type' => $type, | |
'language' => LANGUAGE_NONE | |
); | |
$form = drupal_get_form($type . '_node_form', $node); |
This file contains 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
default: | |
extensions: | |
Behat\MinkExtension: | |
base_url: "<url>" | |
default_session: selenium2 | |
goutte: ~ | |
selenium2: | |
wd_host: http://127.0.0.1:4444/wd/hub | |
browser: chrome | |
capabilities: |
This file contains 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 | |
class FeatureContext extends MinkContext { | |
/** | |
* Take screenshot when step fails. Works only with Selenium2Driver. | |
* Screenshot is saved at [Date]/[Feature]/[Scenario]/[Step].jpg | |
* | |
* @AfterStep @javascript | |
*/ |
This file contains 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 "%~dp0drupal.phar" %* |
This file contains 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 | |
namespace Drush\Sql; | |
define('PSQL_SHOW_TABLES', "SELECT tablename FROM pg_tables WHERE schemaname='public';"); | |
class Sqlpgsql extends SqlBase { | |
//public $query_extra = "--no-align --field-separator=\"\t\" --pset tuples_only=on"; | |
public $query_extra = "--no-align --pset tuples_only=on"; |
This file contains 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
web: | |
image: 'gitlab/gitlab-ce:latest' | |
restart: always | |
hostname: 'gitlab.example.com' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'https://gitlab.example.com' | |
# Add any other gitlab.rb configuration here, each on its own line | |
ports: | |
- '80:80' |
This file contains 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
version: '2' | |
services: | |
mariadb: | |
image: 'bitnami/mariadb:latest' | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
volumes: | |
- 'mariadb_data:/bitnami' | |
phabricator: | |
image: 'bitnami/phabricator:latest' |
This file contains 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
version: "2.1" | |
services: | |
tuleap: | |
image: enalean/tuleap-aio | |
restart: unless-stopped | |
environment: | |
VIRTUAL_HOST: "${VIRTUAL_HOST:-localhost}" | |
DB_HOST: "db" | |
MYSQL_ROOT_PASSWORD: "tuleap" |
OlderNewer