| /** | |
| * 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']; | |
| } | |
| } |
| /** | |
| * Foundation for Sites by ZURB | |
| * Version 6.2.3 | |
| * foundation.zurb.com | |
| * Licensed under MIT Open Source | |
| */ | |
| @import "settings"; | |
| @import "foundation"; |
| !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'); |
| //// | |
| /// 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( |
| <?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 |