You are here

reference_option_limit_test_entityreference.module in Reference field option limit 7

File

tests/reference_option_limit_test_entityreference/reference_option_limit_test_entityreference.module
View source
<?php

/**
 * @file reference_option_limit_test_entityreference.module
 */

/**
 * Helper for hook_install() and tests.
 *
 * @return
 *  An array of city names to be created as terms, with as values the names of
 *  the country term names they should refer to.
 */
function reference_option_limit_test_entityreference_cities() {
  return array(
    'London' => 'Britain',
    'Edinburgh' => 'Britain',
    'Bristol' => 'Britain',
    'Paris' => 'France',
    'Lyon' => 'France',
    'Tours' => 'France',
    'Rouen' => 'France',
    'Roma' => 'Italy',
    'Napoli' => 'Italy',
    'Firenze' => 'Italy',
  );
}

Functions