add fulcrm_apiv2_url_is_type() test function

master
Marek Isalski 9 years ago
parent 729df1bc9a
commit 9f167bccfd

@ -54,6 +54,13 @@ function fulcrm_apiv2_url_to_pk( $url ) {
return intval( $matches[ 2 ] );
}
function fulcrm_apiv2_url_is_type( $url, $type ) {
if ( is_string( $url ) ) {
return ( fulcrm_apiv2_url_to_type( $url ) === $type );
} else
return false;
}
function fulcrm_apiv2_http( $method, $object = null, $data = null, $query = null ) {
$url = null;

Loading…
Cancel
Save