You are here

function animations_endsWith in Animations (JS/CSS) 8

1 call to animations_endsWith()
animations_library_info_build in ./animations.module
Implements hook_library_info_build(). For creating dynamic libraries.

File

./animations.module, line 3

Code

function animations_endsWith($haystack, $needle) {
  $length = strlen($needle);
  if ($length == 0) {
    return true;
  }
  return substr($haystack, -$length) === $needle;
}