function _drush_core_is_named_in_array

8.0.x core.drush.inc _drush_core_is_named_in_array($key, $the_array)
6.x core.drush.inc _drush_core_is_named_in_array($key, $the_array)
7.x core.drush.inc _drush_core_is_named_in_array($key, $the_array)
3.x core.drush.inc _drush_core_is_named_in_array($key, $the_array)
4.x core.drush.inc _drush_core_is_named_in_array($key, $the_array)
5.x core.drush.inc _drush_core_is_named_in_array($key, $the_array)
master core.drush.inc _drush_core_is_named_in_array($key, $the_array)
1 call to _drush_core_is_named_in_array()
drush_core_status in commands/core/core.drush.inc
Command callback. Provides a birds-eye view of the current Drupal installation.

File

commands/core/core.drush.inc, line 862
Core drush commands.

Code

function _drush_core_is_named_in_array($key, $the_array) {
  $is_named = FALSE;

  $simplified_key = str_replace(array(' ', '_', '-'), array('', '', ''), $key);

  foreach ($the_array as $name) {
    if (stristr($simplified_key, str_replace(array(' ', '_', '-'), array('', '', ''), $name))) {
      $is_named = TRUE;
    }
  }

  return $is_named;
}