You are here

function drush_rrssb_gen_css in Ridiculously Responsive Social Sharing Buttons 8.2

Implementation of drush_hook_COMMAND().

File

includes/rrssb.drush.inc, line 104
Provides drush commands for Ridiculously Responsive Social Share Buttons.

Code

function drush_rrssb_gen_css() {
  $css = "/* RRSSB+ per-button CSS. */\n/* Not required when using the Drupal CMS integration module, which generates its own file. */\n/* Generated from Drupal CMS module using 'drush rrssb-gen-css' */\n";
  $css .= rrssb_calc_css(rrssb_button_config());
  $target = rrssb_library_path() . '/css/rrssb.buttons.css';
  file_put_contents($target, $css);
}