You are here

function themekey_deprected_property_warning in ThemeKey 7.3

Detects if deprecated properties are in use.

1 call to themekey_deprected_property_warning()
theme_themekey_abstract_rule_chain_form in ./themekey_admin.inc

File

./themekey_admin.inc, line 937

Code

function themekey_deprected_property_warning($property) {
  static $warnings = array();
  if (!isset($warnings[$property])) {
    $attributes = variable_get('themekey_attributes', array());
    if (!empty($attributes[$property]['deprecated'])) {
      drupal_set_message(!empty($attributes[$property]['deprecated message']) ? filter_xss($attributes[$property]['deprecated message']) : t('Property %property is deprecated!', array(
        '%property' => $property,
      )), 'warning');
    }
    $warnings[$property] = TRUE;
  }
}