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
| 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
| 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
| 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
| <ul id="Grid"> | |
| <li></li> | |
| <li></li> | |
| <li></li> | |
| <li></li> | |
| </ul> |
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
| #content{ | |
| position:absolute; | |
| left:0; | |
| right:0; | |
| margin-left:auto; | |
| margin-right:auto; | |
| } |
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_menu() { | |
| $items['custom_module/some_title_describing_action/%ctools_js'] = array( | |
| 'title' => 'Subscribe', | |
| 'page callback' => 'custom_form__callback', | |
| 'page arguments' => array(2), // index starts with zero | |
| 'type' => MENU_CALLBACK, | |
| 'access callback' => TRUE | |
| ); | |
| return $items; |
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
| #selector { | |
| max-height: 0; | |
| transition: max-height 0.15s ease-out; | |
| overflow: hidden; | |
| } | |
| #selector.active { | |
| max-height: 500px; | |
| transition: max-height 0.25s ease-in; | |
| } |
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_init() { | |
| //Customize modal window | |
| drupal_add_js(array( | |
| 'CUSTOM_MODAL' => array( | |
| 'modalSize' => array( | |
| 'type' => 'fixed', | |
| 'width' => 850, | |
| 'height' => 550, | |
| ), | |
| //Animation mode |
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 getQueryVariable(variable) | |
| { | |
| var query = window.location.search.substring(1); | |
| var vars = query.split("&"); | |
| for (var i=0;i<vars.length;i++) { | |
| var pair = vars[i].split("="); | |
| if(pair[0] == variable){return pair[1];} | |
| } | |
| return(false); | |
| } |