You are here

function _array_to_string_values in Shadowbox 5

Same name and namespace in other branches
  1. 5.2 shadowbox.module \_array_to_string_values()
  2. 6.4 shadowbox.module \_array_to_string_values()
  3. 6 shadowbox.module \_array_to_string_values()
  4. 6.2 shadowbox.module \_array_to_string_values()
  5. 6.3 shadowbox.module \_array_to_string_values()
  6. 7.4 shadowbox.admin.inc \_array_to_string_values()
  7. 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_get_settings in ./shadowbox.module
Construct the JS settings array.

File

./shadowbox.module, line 845
Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue.

Code

function _array_to_string_values($array) {
  foreach ($array as $value) {
    if (is_string($value)) {
      $output[] = $value;
    }
  }
  return $output;
}