function reference_option_limit_test_taxonomy_cities in Reference field option limit 7
Helper for hook_install() and tests.
Return value
An array of city names to be created as terms, with as values the names of the country term names they should refer to.
3 calls to reference_option_limit_test_taxonomy_cities()
- ReferenceOptionLimitTaxonomyTestCase::testNodeCreateForm in tests/
reference_option_limit.test - Test the module's functionality.
- ReferenceOptionLimitTaxonomyTestCase::testNodeEditForm in tests/
reference_option_limit.test - Test the node edit form.
- reference_option_limit_test_taxonomy_install in tests/
reference_option_limit_test_taxonomy/ reference_option_limit_test_taxonomy.install - Implements hook_install().
File
- tests/
reference_option_limit_test_taxonomy/ reference_option_limit_test_taxonomy.module, line 14 - reference_option_limit_test_taxonomy.module
Code
function reference_option_limit_test_taxonomy_cities() {
return array(
'London' => 'Britain',
'Edinburgh' => 'Britain',
'Bristol' => 'Britain',
'Paris' => 'France',
'Lyon' => 'France',
'Tours' => 'France',
'Rouen' => 'France',
'Roma' => 'Italy',
'Napoli' => 'Italy',
'Firenze' => 'Italy',
);
}