You are here

function _oembed_specificity_compare in oEmbed 7

Same name and namespace in other branches
  1. 8 oembed.oembed.inc \_oembed_specificity_compare()
  2. 7.0 oembed.oembed.inc \_oembed_specificity_compare()

Helper function that compares the length of match expressions.

1 string reference to '_oembed_specificity_compare'
oembed_provider_process in ./oembed.oembed.inc

File

./oembed.oembed.inc, line 67

Code

function _oembed_specificity_compare($a, $b) {
  return strlen($a) - strlen($b);
}