function MenuTestCase::enableMenuLink

Enable a menu link.

Parameters

$item: Menu link.

1 call to MenuTestCase::enableMenuLink()
MenuTestCase::toggleMenuLink in modules/menu/menu.test
Alternately disable and enable a menu link.

File

modules/menu/menu.test, line 524

Class

MenuTestCase
@file Tests for menu.module.

Code

function enableMenuLink($item) {
    $mlid = $item['mlid'];
    $edit['enabled'] = TRUE;
    $this->drupalPost("admin/structure/menu/item/{$mlid}/edit", $edit, t('Save'));
    // Verify in the database.
    $this->assertMenuLink($mlid, array(
        'hidden' => 0,
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.