Skip to content

Instantly share code, notes, and snippets.

diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module
index 3c1ee17..ee258b1 100644
--- a/core/modules/comment/comment.module
+++ b/core/modules/comment/comment.module
@@ -139,9 +139,9 @@ function comment_theme() {
'render element' => 'elements',
'template' => 'comment',
),
- 'comment_wrapper' => array(
- 'render element' => 'content',
The following flags are defined for the st_mode field:
S_IFMT 0170000 bit mask for the file type bit fields
S_IFSOCK 0140000 socket
S_IFLNK 0120000 symbolic link
S_IFREG 0100000 regular file
S_IFBLK 0060000 block device
S_IFDIR 0040000 directory
S_IFCHR 0020000 character device
S_IFIFO 0010000 FIFO
@andypost
andypost / bootstrap_python.yml
Last active August 29, 2015 14:21
Ansible playbook to bootstrap python for coreOS
- name: bootstrap coreos with real python
hosts: coreos
gather_facts: False
vars:
core_home: /home/core
pypy_file: pypy-2.4.0-linux64.tar.bz2
pypy_dir: pypy-2.4.0-linux64
pypy_shim: |
#!/bin/bash
diff --git a/dblib.install b/dblib.install
index 1e1b063..588d3a7 100644
--- a/dblib.install
+++ b/dblib.install
@@ -36,65 +36,76 @@ function dblib_requirements($phase) {
if ($phase == 'runtime') {
/* @var Connection $connection Database Connection */
- $connection = Database::getConnection();
- $options = $connection->getConnectionOptions();
diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php
index 48b3bcd..825a0ff 100644
--- a/core/lib/Drupal/Core/Render/Renderer.php
+++ b/core/lib/Drupal/Core/Render/Renderer.php
@@ -7,6 +7,7 @@
namespace Drupal\Core\Render;
+use Drupal\Component\Serialization\Json;
use Drupal\Component\Utility\Html;
<script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj"></div>
@andypost
andypost / menus-1814916-85.patch
Created January 10, 2013 22:29
Menu as config entity
diff --git a/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Menu.php b/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Menu.php
new file mode 100644
index 0000000..7e3ceb0
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/Core/Entity/Menu.php
@@ -0,0 +1,60 @@
+<?php
+
+/**
+ * @file
/**
* Implements hook_field_widget_info_alter().
*
* @todo convert this to a WidgetPlugin annotation.
*/
function comment_field_widget_info_alter(&$info) {
$info['comment_default']['behaviors'] = array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
'default value' => FIELD_BEHAVIOR_NONE,
);
* settings = {
* "default_mode" = "1",
* "per_page" = "50",
* "comment_anonymous" = "0",
* "show_subject" = "TRUE",
* "form_location" = "1",
* "comment_preview" = "1"
* }