You are here

function _epsacrop_get_style_name_from_url in EPSA Crop - Image Cropping 7.2

Same name and namespace in other branches
  1. 8.2 epsacrop.module \_epsacrop_get_style_name_from_url()

Helper function that get the style name from image url.

@access private

Return value

void

1 call to _epsacrop_get_style_name_from_url()
epsacrop_crop_image in ./epsacrop.module
Apply the effect to the image.

File

./epsacrop.module, line 848
The main file of module

Code

function _epsacrop_get_style_name_from_url() {
  $split = explode('/', $_GET['q']);
  $pointer = array_search('styles', $split);
  if ($pointer !== FALSE) {
    return $split[++$pointer];
  }
  return FALSE;
}