You are here

function _omega_tools_is_editable in Omega Tools 7.3

@todo

3 calls to _omega_tools_is_editable()
omega_tools_system_themes_page_alter in ./omega_tools.module
@todo
omega_tools_theme_export in includes/omega_tools.admin.inc
@todo
_omega_tools_theme_access in ./omega_tools.module
@todo

File

./omega_tools.module, line 632

Code

function _omega_tools_is_editable($theme) {
  $themes = list_themes();
  if (!in_array($theme, array(
    'omega',
    'alpha',
  )) && strpos(drupal_get_path('theme', $theme), 'themes') !== 0) {
    if (isset($themes[$theme]->info['base theme'])) {
      $base = system_find_base_themes($themes, $theme);
      if (!empty($base) && isset($base['alpha']) && empty($themes[$theme]->info['locked'])) {
        return TRUE;
      }
    }
  }
  return FALSE;
}