function skinr_get in Skinr 6
Same name and namespace in other branches
- 6.2 skinr.module \skinr_get()
Retrieves the desired classes. If no hook or key are specified, it will return all skinr classes.
Return value
An array.
10 calls to skinr_get()
- panels_skinr_data_handler in modules/
panels.skinr.inc - Skinr data handler. This is the data that populates the skinr form.
- panels_skinr_submit_handler_settings in modules/
panels.skinr.inc - Skinr submit handler.
- skinr_data_handler in includes/
handlers.inc - skinr_export_form in ./
skinr.admin.inc - Skinr settings export form.
- skinr_preprocess in ./
skinr.module - Implementation of hook_preprocess().
File
- ./
skinr.module, line 517
Code
function skinr_get($theme = NULL, $module = NULL, $key = NULL) {
if (is_null($theme)) {
$theme = skinr_current_theme();
}
$skinr = variable_get('skinr_' . $theme, array());
if (is_null($module) || is_null($key)) {
return $skinr;
}
elseif (isset($skinr[$module][$key])) {
return $skinr[$module][$key];
}
else {
return array();
}
}