You are here

protected function AdminMenuCustomizedTestCase::queryMlidByPath in Administration menu 7.3

Returns the menu link ID for a given link path in the management menu.

2 calls to AdminMenuCustomizedTestCase::queryMlidByPath()
AdminMenuCustomizedTestCase::testCustomDisabled in tests/admin_menu.test
Test disabled custom links.
AdminMenuCustomizedTestCase::testCustomExternal in tests/admin_menu.test
Tests external links.

File

tests/admin_menu.test, line 548
Tests for the Administration menu module.

Class

AdminMenuCustomizedTestCase
Tests customized menu links.

Code

protected function queryMlidByPath($path) {
  return db_query('SELECT mlid FROM {menu_links} WHERE menu_name = :menu AND link_path = :path', array(
    ':menu' => 'management',
    ':path' => $path,
  ))
    ->fetchField();
}