new feature : main menu
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
e1d0639eee
commit
1377500ccc
28
materio_main_menu/materio_main_menu.features.menu_custom.inc
Normal file
28
materio_main_menu/materio_main_menu.features.menu_custom.inc
Normal file
@ -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
materio_main_menu/materio_main_menu.info
Normal file
7
materio_main_menu/materio_main_menu.info
Normal file
@ -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
materio_main_menu/materio_main_menu.module
Normal file
5
materio_main_menu/materio_main_menu.module
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Drupal needs this blank file.
|
||||||
|
*/
|
Loading…
x
Reference in New Issue
Block a user