You are here

function shurly_get_errors in ShURLy 6

Get an array of errors (for delivering errors through web services)

1 call to shurly_get_errors()
shurly_shorten in ./shurly.module
API function to shorten a URL @arg $long_url - the long URL to shorten @arg $custom - optional custom short URL, user_access('enter custom URLs') should be checked prior to calling shurly_shorten()

File

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

Code

function shurly_get_errors() {
  $errors = shurly_set_error();
  $return = array();
  foreach ($errors as $error) {
    $return[] = $error['message'];
  }
  return $return;
}