Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Commit 7397369

Browse files
author
deadlybutter
committed
Updates helper extract to account for country
1 parent 6d019d7 commit 7397369

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/modules/dosomething/dosomething_helpers/dosomething_helpers.module

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ function dosomething_helpers_extract_field_data($field, $language = LANGUAGE_NON
189189
// Date values, so need to extract using custom method.
190190
$values[] = dosomething_helpers_extract_field_dates($content);
191191
}
192+
else if (in_array('country', $keys)) {
193+
$values[] = $content['country'];
194+
}
192195
elseif ($keys[0] === 'value') {
193196
// Text value, so need to extract using custom method.
194197
$values[] = dosomething_helpers_extract_field_text($content);

0 commit comments

Comments
 (0)