function _uc_addresses_test_in_pane in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 tests/uc_addresses_test.install \_uc_addresses_test_in_pane()
If the field should appear in the specified pane.
Return value
boolean TRUE if the field should appear in the specified pane. FALSE otherwise.
3 calls to _uc_addresses_test_in_pane()
- uc_addresses_test_install in tests/
uc_addresses_test.install - Implements hook_install().
- uc_addresses_test_schema_alter in tests/
uc_addresses_test.install - Implements hook_schema_alter().
- uc_addresses_test_uninstall in tests/
uc_addresses_test.install - Implements hook_uninstall().
File
- tests/
uc_addresses_test.install, line 155 - Installation file for Ubercart Addresses testing module.
Code
function _uc_addresses_test_in_pane($pane, $field) {
if ($pane && !empty($field['address_type']) && $pane != $field['address_type'] . '_') {
// Some fields belong to one address type only.
return FALSE;
}
return TRUE;
}