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
@mixin breakpoint($point) { | |
@if $point == desktop { | |
// Larger than tablets. | |
@media (min-width: 1210px) { @content; } | |
} | |
@else if $point == tablet { | |
// Tablets, go from 4 to 2 and 2 to 1. | |
@media (max-width: 1209px) { @content; } | |
} | |
@else if $point == mobile { |
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
/** | |
* param string $module | |
* Name of the module. | |
* | |
* return int | |
* 1 or 0 | |
*/ | |
function is_module_enabled($module) { | |
$result = db_query('SELECT s.status FROM system s WHERE s.name = :name AND s.type = :type', array(':name' => $module, ':type' => 'module')); | |
$record = $result->fetchObject(); |
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 hook_form_alter(). | |
*/ | |
function fortytwo_form_alter(&$form, &$form_state, $form_id) { | |
switch ($form_id) { | |
case 'block_admin_display_form': | |
$form['#attached']['js'] = array( | |
drupal_get_path('theme', 'fortytwo') . '/js/mousetrap.js' => array( | |
'scope' => 'footer', | |
), |
NewerOlder