This file contains 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 | |
// Adds to EVERY admin page | |
function custom_admin_page_build(&$page) { | |
// Test if on an admin page | |
if (path_is_admin(current_path())) { | |
// Get paths | |
$path = drupal_get_path('module', 'custom_admin'); | |
$theme_path = drupal_get_path('theme', 'themekit'); | |
// Add js and css to customize the admin theme |
This file contains 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
//// | |
/// Foundation related mixins | |
/// @group foundation-extensions | |
//// | |
/// Regular Grid - Sizes DIRECT child elements so that `$n` number of items appear on each row. | |
/// @param {Number} $n - Number of elements to display per row. | |
/// @param {String} $selector ['.column'] - Selector(s) to use for child elements. | |
@mixin grid-layout-child( |
This file contains 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 ($) { | |
// Always use strict mode to enable better error handling in modern browsers. | |
"use strict"; | |
// For every foundation tab container, create a select list that stays in sync with tabs | |
$(document).ready(function() { | |
// Get all tabs on page | |
var $allTabs = $('.f-tabs'); |
This file contains 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
/** | |
* Foundation for Sites by ZURB | |
* Version 6.2.3 | |
* foundation.zurb.com | |
* Licensed under MIT Open Source | |
*/ | |
@import "settings"; | |
@import "foundation"; |
This file contains 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_FORM_ID_alter(). | |
* | |
* Specifically get the view content page form, look for the bulk field in the header, and add a non-item as default | |
*/ | |
function HOOK_form_views_form_content_page_1_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) { | |
if (isset($form['header']['node_bulk_form']['action']['#type']) && $form['header']['node_bulk_form']['action']['#type'] === 'select') { | |
$form['header']['node_bulk_form']['action']['#options'] = array('' => '- Select Action -') + $form['header']['node_bulk_form']['action']['#options']; | |
} | |
} |