function TranslationTestCase::emptyNode
Returns an empty node data structure.
Parameters
$langcode: The language code.
Return value
An empty node data structure.
2 calls to TranslationTestCase::emptyNode()
- TranslationTestCase::testLanguageSwitcherBlockIntegration in drupal-7.x/
modules/ translation/ translation.test - Tests that the language switcher block alterations work as intended.
- TranslationTestCase::testLanguageSwitcherBlockIntegration in drupal-7.x/
modules/ translation/ translation.test - Tests that the language switcher block alterations work as intended.
Archivo
- drupal-7.x/
modules/ translation/ translation.test, line 274 - Tests for the Translation module.
Class
- TranslationTestCase
- Functional tests for the Translation module.
Código
function emptyNode($langcode) {
return (object) array(
'nid' => NULL,
'language' => $langcode,
);
}