You are here

function _linkchecker_array_values_recursive in Link checker 7

Return all the values of one-dimensional and multidimensional arrays.

Return value

array Returns all the values from the input array and indexes the array numerically.

1 call to _linkchecker_array_values_recursive()
_linkchecker_extract_node_links in ./linkchecker.module
Extracts links from a node.

File

./linkchecker.module, line 2706
This module periodically check links in given node types, blocks etc.

Code

function _linkchecker_array_values_recursive(array $array) {
  $array_values = array();
  foreach ($array as $value) {
    if (is_array($value)) {
      $array_values = array_merge($array_values, _linkchecker_array_values_recursive($value));
    }
    else {
      $array_values[] = $value;
    }
  }
  return $array_values;
}