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
mysql -u username -pPassword --host hostname database_name < dump.sql |
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
function custom_preprocess_page(&$vars) { | |
$vars['title_prefix'][] = array( | |
'#markup' => 'HTML_MARKUP_HERE' | |
); | |
$vars['title_suffix'][] = array( | |
'#markup' => 'HTML_MARKUP_HERE' | |
); | |
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
base_path() . path_to_theme() |
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
voodoo_helper_get_field_by_varname('VAR_NAME'); |
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
drush pm-update MODULE_NAME-7.x-1.x-dev |
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
if (strpos($SEARCH_HERE, 'SEARCH_SUBSTRING') !== false) { | |
// Do stuff.. | |
} |
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
$commands[] = array('command' => 'MODULE_behaviors'); |
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
var url = window.location.href; |
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
function custom() { | |
drupal_add_js(drupal_get_path('module', 'CURRENT_MODULE') . '/CURRENT_MODULE_proto.js'); | |
$path = 'YOUR_PATH/' . $nid; | |
if ($alias = drupal_lookup_path('alias', $path)) { | |
$url = $alias; | |
} else { | |
$url = $path; | |
} |
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 print render(field_view_field('node', $node, 'field_CUSTOM', array( | |
'label' => 'hidden' | |
))); ?> |