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
# simple drupal calls via drush | |
drush @d7Test ev '$a = node_type_get_types(); while (list($k,$v) = each($a)) {echo "\"$k\",\"$v->name\",\"$v->description\"\n\n";}' | |
drush @d7Test ev '$a = system_get_info("theme"); while (list($k,$v) = each($a)) {echo "\"$k\",\"$v->name\",\"$v->description\"\n\n";}' | |
#unions might be nice? | |
drush @d7Test ev '$a = system_get_info("module"); while (list($k,$v) = each($a)) {echo "\"$k\",\"$v->name\",\"$v->description\"\n\n";}' | |
drush @slndev ev '$a = array_keys(system_get_info("theme")); while (list($k,$v) = each($a)) {echo "$k\n";}' |
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
diff -b -s --suppress-common-lines --side-by-side <(drush @XXX pm-list --status=enabled) <(drush @YYY pm-list --status=enabled) |
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
query | |||||
---|---|---|---|---|---|
query | type | ||||
query | options | ||||
defaults | |||||
defaults | title | ||||
defaults | use_more | ||||
defaults | use_more_always | ||||
defaults | use_more_text | ||||
defaults | fields | ||||
defaults | filter_groups |
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
for f in $(find /var/www -maxdepth 2 -type d -regextype awk -regex '.*(dev|test)\.apperceive\.(com|net)' -exec echo {} \;); do echo "Welcome to $f" | sed 's~/var/www/html/~~' > $f/public/index.html; done |
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 | |
function THEMENAME_preprocess_table(&$variables) { | |
if(!isset($variables['attributes']['class'])) { | |
$variables['attributes']['class'] = array('table', 'table-striped'); | |
} | |
else { | |
$variables['attributes']['class'][] = 'table'; | |
$variables['attributes']['class'][] = 'table-striped'; | |
} | |
} |
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 | |
$colb = array( | |
'data' => 'b', | |
'header' => false, // cell is a header | |
'class' => 'bclass bclass', | |
'any-td-attr' => 'bvalue', | |
); | |
$cella2 = array( | |
'data' => 'a2', |
OlderNewer