function farm_ui_theme_preprocess_farm_map in farmOS 2.x
Implements hook_preprocess_HOOK().
File
- modules/
core/ ui/ theme/ farm_ui_theme.module, line 31 - The farmOS UI Theme module.
Code
function farm_ui_theme_preprocess_farm_map(&$variables) {
// We need to add the flag CSS to pages with maps in them because a user MAY
// click a popup which MAY have flags in it. Otherwise the flags do not get
// styled.
$variables['#attached']['library'] = 'farm_ui_theme/flag';
}