You are here

function epsacrop_init in EPSA Crop - Image Cropping 6

Same name and namespace in other branches
  1. 6.2 epsacrop.module \epsacrop_init()

Implements hook_init

@access public

Return value

void

File

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

Code

function epsacrop_init() {
  $paths = variable_get('epsacrop_paths', "node/add\nnode/add/*\nuser/*/edit/profile\nuser/register\nadmin/user/user/create");
  $path = drupal_get_path_alias($_GET['q']);

  // Compare with the internal and path alias (if any).
  $page_match = drupal_match_path($path, $paths);
  if ($path != $_GET['q']) {
    $page_match = $page_match || drupal_match_path($_GET['q'], $paths);
  }
  if ($page_match) {
    _epsacrop_include_html();
  }
}