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 stand_main_preprocess_maintenance_page(&$variables) { | |
| if (MAINTENANCE_MODE == 'error') { | |
| $variables['template_files'][] = 'error-page.tpl.php'; | |
| } | |
| } |
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 | |
| /** | |
| * Implements hook_node_presave(). | |
| */ | |
| function ombuprofile_node_presave($node) { | |
| if (isset($node->devel_generate)) { | |
| switch ($node->type) { | |
| $node->title = 'asldfkj alsdkfja lsdkfj'; | |
| $node->field_blog[LANGUAGE_NONE][0]['tid'] = STATE_NATIONAL_TERM_TID; |
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
| # Create a branch at a date near patch creation | |
| git co -b issue-x `git log -1 --before=[date of patch, e.g. 6/1/2013] --format=format:%h` | |
| # Apply patch and commit | |
| curl [patch url] | patch -p1 | |
| git add -A . | |
| git ci -m 'Patch from #comment' | |
| # Rebase to current 8.x HEAD | |
| git rebase 8.x |
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 --git a/css/media.css b/css/media.css | |
| index 92df514..0873b28 100644 | |
| --- a/css/media.css | |
| +++ b/css/media.css | |
| @@ -73,7 +73,6 @@ | |
| } | |
| .media-item img { | |
| - height: auto; | |
| margin-bottom: 10px; |
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 --git a/css/media.css b/css/media.css | |
| index 92df514..0873b28 100644 | |
| --- a/css/media.css | |
| +++ b/css/media.css | |
| @@ -73,7 +73,6 @@ | |
| } | |
| .media-item img { | |
| - height: auto; | |
| margin-bottom: 10px; |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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 --git a/select2.module b/select2.module | |
| index 3fc4909..2519115 100644 | |
| --- a/select2.module | |
| +++ b/select2.module | |
| @@ -1179,11 +1179,11 @@ function _select2_set_exuled_for_settings() { | |
| } | |
| -// if ($select2_settings['select_2']['excludes']) { | |
| + if ($select2_settings['select_2']['excludes']) { |
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 | |
| ctools_include('export'); | |
| // Get page manager definition. This could be from a | |
| // hook_default_page_manager_pages(). It's important to remove that function | |
| // though or page will show as "overridden". | |
| $pages = _pages_for_import_to_db(); | |
| foreach ($pages as $page) { |
OlderNewer