You are here

function sassy_element_info_alter in Sassy 7.3

Same name and namespace in other branches
  1. 7 sassy.module \sassy_element_info_alter()

Implementation of hook_element_info_alter().

File

./sassy.module, line 28
Handles compiling of .sass / .scss files.

Code

function sassy_element_info_alter(&$type) {
  array_unshift($type['styles']['#pre_render'], 'sassy_pre_render');
  if (variable_get('sassy_devel', FALSE) && user_access('administer site configuration') && flood_is_allowed('sassy_devel_warning', 1)) {
    flood_register_event('sassy_devel_warning');
    drupal_set_message(t('Your SASS / SCSS files are being recompiled on every page request. Don\'t forget to <a href="!link">disable this feature</a> before opening your website to the public.', array(
      '!link' => url('admin/config/development/performance'),
    )), 'warning');
  }
}