function advanced_link_extract_allowed_values in Advanced Link 7
Same name and namespace in other branches
- 6 advanced_link.module \advanced_link_extract_allowed_values()
Extracts textarea values to array.
1 call to advanced_link_extract_allowed_values()
- advanced_link_field_process in ./
advanced_link.module - Create element array.
File
- ./
advanced_link.module, line 282 - Defines simple advanced_link widget.
Code
function advanced_link_extract_allowed_values($values) {
$values_as_array = explode("\n", $values);
$result_values = array(
'' => ' ',
);
foreach ($values_as_array as $title) {
$result_values[trim(htmlentities($title))] = trim(htmlentities($title));
}
return $result_values;
}