Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
|
@ -83,6 +83,20 @@ function seven_preprocess_block_content_add_list(&$variables) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_block() for block content.
|
||||
*
|
||||
* Disables contextual links for all blocks.
|
||||
*/
|
||||
function seven_preprocess_block(&$variables) {
|
||||
if (isset($variables['title_suffix']['contextual_links'])) {
|
||||
unset($variables['title_suffix']['contextual_links']);
|
||||
unset($variables['elements']['#contextual_links']);
|
||||
|
||||
$variables['attributes']['class'] = array_diff($variables['attributes']['class'], ['contextual-region']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK() for block admin page templates.
|
||||
*/
|
||||
|
@ -94,18 +108,6 @@ function seven_preprocess_admin_block_content(&$variables) {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK() for tablesort indicator templates.
|
||||
*
|
||||
* Uses Seven's image versions, so the arrows show up as black and not gray on
|
||||
* gray.
|
||||
*/
|
||||
function seven_preprocess_tablesort_indicator(&$variables) {
|
||||
$theme_path = drupal_get_path('theme', 'seven');
|
||||
$variables['arrow_asc'] = file_create_url($theme_path . '/images/arrow-asc.png');
|
||||
$variables['arrow_desc'] = file_create_url($theme_path . '/images/arrow-desc.png');
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK() for menu-local-action templates.
|
||||
*/
|
||||
|
@ -185,21 +187,3 @@ function seven_form_node_form_alter(&$form, FormStateInterface $form_state) {
|
|||
$form['revision_information']['#type'] = 'container';
|
||||
$form['revision_information']['#group'] = 'meta';
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_library_info_alter().
|
||||
*/
|
||||
function seven_library_info_alter(&$libraries, $extension) {
|
||||
if ($extension == 'core' && isset($libraries['drupal.vertical-tabs'])) {
|
||||
unset($libraries['drupal.vertical-tabs']['css']['component']['misc/vertical-tabs.css']);
|
||||
$libraries['drupal.vertical-tabs']['dependencies'][] = 'seven/vertical-tabs';
|
||||
}
|
||||
if ($extension == 'core' && isset($libraries['jquery.ui'])) {
|
||||
unset($libraries['jquery.ui']['css']['theme']['assets/vendor/jquery.ui/themes/base/theme.css']);
|
||||
$libraries['jquery.ui']['dependencies'][] = 'seven/seven.jquery.ui';
|
||||
}
|
||||
if ($extension == 'core' && isset($libraries['drupal.dialog'])) {
|
||||
unset($libraries['drupal.dialog']['css']['theme']['misc/dialog.theme.css']);
|
||||
$libraries['drupal.dialog']['dependencies'][] = 'seven/seven.drupal.dialog';
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue