\Drupal::VERSION, 'js' => array( $path . '/js/mobile.install.js' => array( 'group' => JS_THEME, ), ), 'css' => array( $path . '/install-page.css' => array( 'group' => CSS_AGGREGATE_THEME, ), ), ); return $libraries; } /** * Implements hook_preprocess_HOOK() for page templates. */ function seven_preprocess_page(&$variables) { $variables['primary_local_tasks'] = $variables['tabs']; unset($variables['primary_local_tasks']['#secondary']); $variables['secondary_local_tasks'] = array( '#theme' => 'menu_local_tasks', '#secondary' => isset($variables['tabs']['#secondary']) ? $variables['tabs']['#secondary'] : '', ); } /** * Displays the list of available node types for node creation. */ function seven_node_add_list($variables) { $content = $variables['content']; 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(). * * Displays the list of available custom block types for creation. */ function seven_custom_block_add_list($variables) { $output = ''; if (!empty($variables['types'])) { $output = ''; } return $output; } /** * Overrides 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() ? '