You are here

function domain_theme_get_color_path in Domain Access 6.2

Same name and namespace in other branches
  1. 7.3 domain_theme/domain_theme.module \domain_theme_get_color_path()
  2. 7.2 domain_theme/domain_theme.module \domain_theme_get_color_path()

Return the unique string path element used by color.module.

@ return A string indicating the color module's filepath.

Parameters

$path: A path to a color module file, such as 'default/files/garland-00123451/style.css'.

1 call to domain_theme_get_color_path()
domain_theme_settings_submit in domain_theme/domain_theme.admin.inc
Process domain_theme_settings form submissions.

File

domain_theme/domain_theme.module, line 281
Domain Theme module for the Domain Access module group.

Code

function domain_theme_get_color_path($path) {
  return current(array_slice(array_reverse(explode('/', $path)), 1, 1));
}