diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index 61212fe..bb92df7 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -39,93 +39,60 @@ function seven_preprocess_page(&$vars) { } /** - * Displays the list of available node types for node creation. + * Implements hook_preprocess_HOOK() for node-add-list.html.twig. */ -function seven_node_add_list($variables) { - $content = $variables['content']; - $output = ''; - if ($content) { - $output = ''; } - else { - $output = '

' . t('You have not created any content types yet. Go to the content type creation page to add a new content type.', array('@create-content' => url('admin/structure/types/add'))) . '

'; - } - return $output; } /** - * Overrides theme_custom_block_add_list(). + * Implements hook_preprocess_HOOK() for custom-block-add-list.html.twig. + * + * Add variables for the label and the path separately. + * + * Displays the list of available custom block types for creation, adding + * separate variables for the label and the path. * - * Displays the list of available custom block types for creation. */ -function seven_custom_block_add_list($variables) { - $content = $variables['content']; - $output = ''; - if ($content) { - $output = ''; } - return $output; } /** - * Overrides theme_admin_block_content(). + * Implements hook_preprocess_HOOK() for theme_admin_block_content(). * * Uses an unordered list markup in both compact and extended mode. */ -function seven_admin_block_content($variables) { - $content = $variables['content']; - $output = ''; - if (!empty($content)) { - $output = system_admin_compact_mode() ? '