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
diff --git a/Contents/Info.plist b/Contents/Info.plist | |
index 30088e8..6516736 100644 | |
--- a/Contents/Info.plist | |
+++ b/Contents/Info.plist | |
@@ -170,6 +170,8 @@ | |
<key>public.filename-extension</key> | |
<array> | |
<string>ini</string> | |
+ <string>info</string> | |
+ <string>diz</string> |
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
diff --git a/Contents/Info.plist b/Contents/Info.plist | |
index 30088e8..1fba4c8 100644 | |
--- a/Contents/Info.plist | |
+++ b/Contents/Info.plist | |
@@ -284,6 +284,9 @@ | |
<key>public.filename-extension</key> | |
<array> | |
<string>css</string> | |
+ <string>less</string> | |
+ <string>scss</string> |
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
/* Override inline dom styles from modal.js */ | |
#modalContent { | |
position: fixed !important; | |
top: 12% !important; | |
bottom: 12% !important; | |
right: 4% !important; | |
left: 4% !important; | |
} | |
/* Limit max width to 1000px */ | |
div.ctools-modal-content { |
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
.more-link-triangle-after { | |
&:after { | |
content: ""; | |
position: absolute; | |
width: 0; | |
height: 0; | |
margin-top: .4em; | |
margin-left: .4em; | |
border-top: .4em solid transparent; | |
border-bottom: .4em solid transparent; |
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 | |
/** | |
* Implements hook_form_ID_alter(). | |
*/ | |
function myfeature_form_bean_form_alter(&$form, &$form_state, $form_id) { | |
// Simplify the log message field. | |
if (isset($form['revision'])) { | |
$form['revision']['log']['#type'] = 'textfield'; |
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 | |
// Place this in a custom module, eg "mymodule.module" | |
/** | |
* Implements hook_date_format_types(). | |
*/ | |
function mymodule_date_format_types() { | |
return array( | |
'post_date' => t('Post date'), | |
); |
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
// Place this in mymodule.module | |
/** | |
* Implements hook_panels_pre_render(). | |
*/ | |
function mymodule_panels_pre_render($panels_display, $renderer) { | |
// Add a body class for all panel layouts present on a given page. This | |
// functionality piggy-backs on Panels 'body_classes_to_add' functionality. | |
// And let's us do clever things like null out the max-width of container |
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 | |
// Place script in root directory of Drupal installation. | |
// From https://www.drupal.org/node/1080330#comment-6520842 | |
define('DRUPAL_ROOT', getcwd()); | |
require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; | |
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); | |
function nobueno() { | |
$startingtime = microtime(true); | |
$o = '<p>Checking for dead modules ...</p>'; | |
$result = db_select('system') |
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
/** | |
* Technique from http://lea.verou.me/2011/01/styling-children-based-on-their-number-with-css3/ | |
*/ | |
/* one item */ | |
li:first-child:nth-last-child(1) { | |
width: 100%; | |
} | |
/* two items */ |
OlderNewer