diff --git a/core/modules/config/tests/config_test/config_test.module b/core/modules/config/tests/config_test/config_test.module index 4aaee4d..e5de7e7 100644 --- a/core/modules/config/tests/config_test/config_test.module +++ b/core/modules/config/tests/config_test/config_test.module @@ -33,7 +33,7 @@ function config_test_menu() { $items['admin/structure/config_test/add'] = array( 'title' => 'Add test configuration', 'route_name' => 'config_test_entity_add', - 'type' => MENU_LOCAL_ACTION, + 'type' => MENU_SIBLING_LOCAL_TASK, ); $items['admin/structure/config_test/manage/%config_test'] = array( 'route_name' => 'config_test_entity_edit', @@ -58,6 +58,21 @@ function config_test_menu() { } /** + * Implements hook_local_actions() + */ +function config_test_local_actions() { + return array( + array( + 'route_name' => 'config_test_entity_add', + 'title' => t('Add test configuration'), + 'appears_on' => array( + 'config_test_list_page', + ), + ), + ); +} + +/** * Loads a ConfigTest object. * * @param string $id