function TranslationTestCase::emptyNode

Returns an empty node data structure.

Parameters

$langcode: The language code.

Return value

An empty node data structure.

1 call to TranslationTestCase::emptyNode()
TranslationTestCase::testLanguageSwitcherBlockIntegration in modules/translation/translation.test
Tests that the language switcher block alterations work as intended.

File

modules/translation/translation.test, line 276

Class

TranslationTestCase
Functional tests for the Translation module.

Code

function emptyNode($langcode) {
    return (object) array(
        'nid' => NULL,
        'language' => $langcode,
    );
}

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