You are here

function drush_fontawesome_post_pm_enable in Font Awesome Icons 7

Same name and namespace in other branches
  1. 7.3 drush/fontawesome.drush.inc \drush_fontawesome_post_pm_enable()
  2. 7.2 drush/fontawesome.drush.inc \drush_fontawesome_post_pm_enable()

Implements drush_MODULE_post_COMMAND().

File

drush/fontawesome.drush.inc, line 103
drush integration for fontawesome.

Code

function drush_fontawesome_post_pm_enable() {
  $extensions = func_get_args();

  // Deal with comma delimited extension list.
  if (strpos($extensions[0], ',') !== FALSE) {
    $extensions = explode(',', $extensions[0]);
  }
  if (in_array('fontawesome', $extensions) && !drush_get_option('skip')) {
    fontawesome_drush_lib_download();
  }
}