function advanced_link_extract_allowed_values in Advanced Link 6
Same name and namespace in other branches
- 7 advanced_link.module \advanced_link_extract_allowed_values()
Extracts textarea values to array.
1 call to advanced_link_extract_allowed_values()
- advanced_link_process in ./
advanced_link.module - Process the advanced_link type element before displaying the field.
File
- ./
advanced_link.module, line 388 - 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;
}