You are here

function _skinr_is_featured in Skinr 6.2

Same name and namespace in other branches
  1. 7.2 skinr_ui.edit.inc \_skinr_is_featured()

Helper function determine whether one of a set of hooks exists in a list of required features.

1 call to _skinr_is_featured()
skinr_ui_form_alter in ./skinr_ui.module
Implementation of hook_form_alter().

File

./skinr_ui.module, line 747

Code

function _skinr_is_featured($preprocess_hooks, $features) {
  foreach ($preprocess_hooks as $preprocess_hook) {
    if (in_array($preprocess_hook, $features)) {
      return TRUE;
    }
  }
  return FALSE;
}