function themekey_deprected_property_warning in ThemeKey 7.3
Detects if deprecated properties are in use.
1 call to themekey_deprected_property_warning()
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;
}
}