You are here

function shurly_validate in ShURLy 6

General function to validate long and short URLs calls hook_shurly_validate(&$long, &$custom)

File

./shurly.module, line 567
description http://www.youtube.com/watch?v=Qo7qoonzTCE

Code

function shurly_validate(&$long, &$custom = NULL) {
  $modules = module_implements('shurly_validate');
  $return = TRUE;
  foreach ($modules as $module) {
    $function = $module . '_shurly_validate';
    if (!$function($long, $custom)) {
      $return = FALSE;
      break;
    }
  }
  return $return;
}