function field_test_field_languages in SimpleTest 7
Implement hook_field_languages().
File
- tests/
field_test.module, line 660
Code
function field_test_field_languages($obj_type, $field, &$languages) {
if ($field['settings']['test_hook_in']) {
// Add an unavailable language.
$languages[] = 'xx';
// Remove an available language.
unset($languages[0]);
}
}