function _skinr_is_featured in Skinr 7.2
Same name and namespace in other branches
- 6.2 skinr_ui.module \_skinr_is_featured()
Helper function to determine whether one of a set of hooks exists in a list of required theme hooks.
@todo Rename function to be more descriptive.
Parameters
$theme_hooks: An array of theme hooks available to this element.
$allowed_hooks: An array of allowed theme hooks.
Return value
TRUE if an overlap is found, FALSE otherwise.
1 call to _skinr_is_featured()
- skinr_ui_form in ./
skinr_ui.edit.inc - Form builder for the skins configuration form.
File
- ./
skinr_ui.edit.inc, line 421 - Page callbacks for the Skinr UI module related to editing skins.
Code
function _skinr_is_featured($theme_hooks, $allowed_hooks) {
foreach ($theme_hooks as $theme_hook) {
if (in_array($theme_hook, $allowed_hooks)) {
return TRUE;
}
}
return FALSE;
}