Bladeren bron

new feature : main menu

Signed-off-by: bachy <git@g-u-i.net>
bachy 12 jaren geleden
bovenliggende
commit
1377500ccc

+ 28 - 0
materio_main_menu/materio_main_menu.features.menu_custom.inc

@@ -0,0 +1,28 @@
+<?php
+/**
+ * @file
+ * materio_main_menu.features.menu_custom.inc
+ */
+
+/**
+ * Implements hook_menu_default_menu_custom().
+ */
+function materio_main_menu_menu_default_menu_custom() {
+  $menus = array();
+
+  // Exported menu: main-menu.
+  $menus['main-menu'] = array(
+    'menu_name' => 'main-menu',
+    'title' => 'Main menu',
+    'description' => 'The <em>Main</em> menu is used on many sites to show the major sections of the site, often in a top navigation bar.',
+    'language' => 'und',
+    'i18n_mode' => '0',
+  );
+  // Translatables
+  // Included for use with string extractors like potx.
+  t('Main menu');
+  t('The <em>Main</em> menu is used on many sites to show the major sections of the site, often in a top navigation bar.');
+
+
+  return $menus;
+}

+ 7 - 0
materio_main_menu/materio_main_menu.info

@@ -0,0 +1,7 @@
+name = materio main menu
+core = 7.x
+package = Materio
+dependencies[] = features
+dependencies[] = menu
+features[features_api][] = api:1
+features[menu_custom][] = main-menu

+ 5 - 0
materio_main_menu/materio_main_menu.module

@@ -0,0 +1,5 @@
+<?php
+/**
+ * @file
+ * Drupal needs this blank file.
+ */