function _array_to_string_values in Shadowbox 6
Same name and namespace in other branches
- 5.2 shadowbox.module \_array_to_string_values()
- 5 shadowbox.module \_array_to_string_values()
- 6.4 shadowbox.module \_array_to_string_values()
- 6.2 shadowbox.module \_array_to_string_values()
- 6.3 shadowbox.module \_array_to_string_values()
- 7.4 shadowbox.admin.inc \_array_to_string_values()
- 7.3 shadowbox.admin.inc \_array_to_string_values()
Filter values that are not strings from an array.
Parameters
$array: An array to filter.
Return value
$output The filtered array.
1 call to _array_to_string_values()
- shadowbox_header in ./
shadowbox.module - Build the Shadowbox header by adding the necessary CSS and JS files.
File
- ./
shadowbox.module, line 647 - Shadowbox, a JavaScript media viewer application for displaying content in a modal dialog.
Code
function _array_to_string_values($array) {
foreach ($array as $value) {
if (is_string($value)) {
$output[] = $value;
}
}
return $output;
}