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
# | |
# Force SSL on the whole website. | |
# | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
RewriteCond %{HTTP_HOST} !^www\. | |
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
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
$results = db_query("SELECT tid FROM {taxonomy_term_data} WHERE vid = :vid", array(':vid' => PLACE_HERE_VOCABULARY_ID))->fetchAll(); | |
foreach ($results as $result) { | |
taxonomy_term_delete($result->tid); | |
} |
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
img.float-left { | |
float: left!important; | |
margin: 6px 12px 10px 0!important; | |
} | |
img.float-right { | |
float: right!important; | |
margin: 6px 0 12px 10px!important; | |
} |
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
db_delete('menu_links') | |
->condition('module', 'system') | |
->execute(); | |
menu_rebuild(); | |
drupal_set_message(t('The menu router has been rebuilt.')); |
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
watchdog('debug', '@data', array('@data' => '')); |
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
SELECT | |
u.uid, | |
u.name | |
FROM users u | |
LEFT JOIN users_roles r ON u.uid = r.uid | |
WHERE | |
u.uid > 0 AND | |
u.status = 1 AND | |
r.rid IS NULL |
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
core = 7.x | |
api = 2 | |
projects[] = drupal | |
projects[level1][type] = profile | |
projects[level1][download][type] = git | |
projects[level1][download][url] = https://github.com/aramboyajyan/d7level1 | |
projects[level2][type] = profile | |
projects[level2][download][type] = git |
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
cache_clear_all('variables', 'cache_bootstrap'); |
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 | |
/** | |
* Constants. | |
*/ | |
// Number of minutes for which we will check if the user posted a duplicate comment. | |
define('YOUR_MODULE_OR_THEME_DUPLICATE_WINDOW', 5); | |
/** | |
* Implements hook_form_alter(). |
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
cat COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > ca-bundle.crt |