You are here

function imagecrop_get_theme in Image javascript crop 7

Return the theme to use for imagecrop popups.

1 string reference to 'imagecrop_get_theme'
imagecrop_menu in ./imagecrop.module
Implements hook_menu().

File

./imagecrop.module, line 748
Provides a javascript toolbox through an imagecache action.

Code

function imagecrop_get_theme() {
  $imagecrop_theme = variable_get('imagecrop_theme', 'admin_theme');
  $admin_theme = variable_get('admin_theme');
  if ($imagecrop_theme == 'admin_theme' && user_access('view the administration theme') && !empty($admin_theme)) {
    return $admin_theme;
  }
}