You are here

function array_remove in Imagick 7

1 call to array_remove()
imagick_image_effect_info in ./imagick.module
Implements hook_image_effect_info()

File

./imagick.module, line 682
Imagick toolkit for image manipulation within Drupal.

Code

function array_remove(array &$arr, $key) {
  if (array_key_exists($key, $arr)) {
    $val = $arr[$key];
    unset($arr[$key]);
    return $val;
  }
  return null;
}