Skip to content

Commit 00d50fb

Browse files
committed
Enforce basic page at the top of the add node menu
1 parent 64bb23d commit 00d50fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stanford_profile_helper.module

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,9 @@ function _stanford_profile_helper_term_form_validate(array $element, FormStateIn
417417
* Implements hook_menu_links_discovered_alter().
418418
*/
419419
function stanford_profile_helper_menu_links_discovered_alter(&$links) {
420+
if (isset($links['admin_toolbar_tools.extra_links:node.add.stanford_page'])) {
421+
$links['admin_toolbar_tools.extra_links:node.add.stanford_page']['weight'] = -99;
422+
}
420423
if (isset($links['admin_toolbar_tools.extra_links:media_page'])) {
421424
// Alter the "Media" link for /admin/content/media path.
422425
$links['admin_toolbar_tools.extra_links:media_page']['title'] = t('All Media');

0 commit comments

Comments
 (0)