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
| SELECT FROM_UNIXTIME(login, '%Y/%m/%d') AS dates, count(distinct(uid)) as theCount | |
| FROM login_history | |
| WHERE login BETWEEN 1478476800 AND 1478645999 | |
| GROUP BY dates |
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
| /** | |
| * Implements Migration::prepare(). | |
| * This func fix empty fc's on migrate update operation. | |
| * Used as fix while performs updates, | |
| * drush mi AlNodeInstitution --idlist="8013" --force --update. | |
| */ | |
| public function prepare($entity, stdClass $row) { | |
| // Don't run on initial import only on update. | |
| if (isset($entity->nid)) { | |
| // Load the original node object. |
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 | |
| /** | |
| * Remove text format selection from node creating page | |
| * Implements of hook_element_info_alter(). | |
| */ | |
| function YOURTHEME_element_info_alter(&$type) { | |
| // Our process callback must run immediately after filter_process_format(). | |
| $filter_process_format_location = array_search('filter_process_format', $type['text_format']['#process']); | |
| $replacement = array('filter_process_format', 'YOURTHEME_filter_process_format'); | |
| array_splice($type['text_format']['#process'], $filter_process_format_location, 1, $replacement); |
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 theme_preprocess_block(&$vars) { | |
| $block = $vars['block']; | |
| if($block->module == 'system' && $block->delta == 'main' && function_exists('views_get_page_view') && views_get_page_view()){ | |
| $view_object = views_get_page_view(); | |
| $vars['theme_hook_suggestions'][] = 'block__views__' . $view_object->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
| <div class="wrapper"> | |
| <div class="circle"></div> | |
| </div> | |
| .wrapper { | |
| background: #000; | |
| width: 100px; | |
| height: 100px; | |
| position: relative; | |
| } |