Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* @file
* Form functionality for wm_profile.
*/
/**
* Submit handler for the field collection item form.
*/
/**
* @file: With breaks.
*/
.selector1 {
position: absolute;
padding-left: 2.5rem;
color: $blue;
.selector2 {
position: relative;
<?php
/**
* Implementation of hook_css_alter().
*/
function hook_css_alter(&$css) {
// For each item, don't allow preprocessing to disable @import.
foreach ($css as &$item) {
if (file_exists($item['data'])) {
$item['preprocess'] = FALSE;
$points: sm 0px, md 480px, lg 767px, xl 980px;
$bp: () !default;
@for $i from 1 through length($points) {
// Get the current, previous, and next items in the list.
$curr: nth($points, $i);
$prev: if($i - 1 > 0, nth($points, $i - 1), false);
$next: if($i + 1 <= length($points), nth($points, $i + 1), false);
// Get the min and max widths.
@skh-
skh- / page.tpl.php
Last active January 1, 2016 20:49
Remove feed icon (RSS) from Drupal.
<?php print $feed_icons; ?>
@skh-
skh- / config.rb
Last active January 1, 2016 11:19
sass_options = {:debug_info => true}
line_comments = false
<?php
function formtable_form_table_form($form = array(), &$form_state) {
$form['table'] = array(
'#theme' => 'table',
'#header' => array(t('Column 1'), t('Column 2')),
'#rows' => array(
// First row.
'r1' => array(
'c1' => array(
@skh-
skh- / remove-translation-nodelink.php
Last active January 1, 2016 08:19
Remove translation links from drupal nodes without i18n