-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from compucorp/integration
Sync master with integration
- Loading branch information
Showing
6 changed files
with
97 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
.../civihr_employee_portal_features/civihr_employee_portal_features.features.menu_custom.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
/** | ||
* @file | ||
* civihr_employee_portal_features.features.menu_custom.inc | ||
*/ | ||
|
||
/** | ||
* Implements hook_menu_default_menu_custom(). | ||
*/ | ||
function civihr_employee_portal_features_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.', | ||
); | ||
// 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; | ||
} |
39 changes: 39 additions & 0 deletions
39
...s/civihr_employee_portal_features/civihr_employee_portal_features.features.menu_links.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* @file | ||
* civihr_employee_portal_features.features.menu_links.inc | ||
*/ | ||
|
||
/** | ||
* Implements hook_menu_default_menu_links(). | ||
*/ | ||
function civihr_employee_portal_features_menu_default_menu_links() { | ||
$menu_links = array(); | ||
|
||
// Exported menu link: main-menu_home:dashboard | ||
$menu_links['main-menu_home:dashboard'] = array( | ||
'menu_name' => 'main-menu', | ||
'link_path' => 'dashboard', | ||
'router_path' => 'dashboard', | ||
'link_title' => 'Home', | ||
'options' => array( | ||
'attributes' => array( | ||
'title' => '', | ||
), | ||
'identifier' => 'main-menu_home:dashboard', | ||
), | ||
'module' => 'menu', | ||
'hidden' => 0, | ||
'external' => 0, | ||
'has_children' => 0, | ||
'expanded' => 0, | ||
'weight' => 0, | ||
'customized' => 1, | ||
); | ||
// Translatables | ||
// Included for use with string extractors like potx. | ||
t('Home'); | ||
|
||
|
||
return $menu_links; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters