function fontawesome_drush_command in Font Awesome Icons 7
Same name and namespace in other branches
- 7.3 drush/fontawesome.drush.inc \fontawesome_drush_command()
- 7.2 drush/fontawesome.drush.inc \fontawesome_drush_command()
Implementation of hook_drush_command().
In this hook, you specify which commands your drush module makes available, what it does and description.
Notice how this structure closely resembles how you define menu hooks.
@See drush_parse_command() for a list of recognized keys.
Return value
An associative array describing your command(s).
File
- drush/
fontawesome.drush.inc, line 23 - drush integration for fontawesome.
Code
function fontawesome_drush_command() {
$items = array();
$items['fa-download'] = array(
'callback' => 'fontawesome_drush_lib_download',
'description' => dt('Downloads the required Fontawesome library from http://fortawesome.github.io'),
'aliases' => array(
'fadl',
),
'arguments' => array(
'path' => dt('Optional. A path to the fontawesome module. If omitted Drush will use the default location.'),
),
);
return $items;
}