function _hosting_task_deploy_command_form_title in Hosting 7.4
Output friendly looking HTML after a deploy checkbox.
Parameters
$command_name:
$commands array The full array of commands.:
File
- site/
hosting_site.module, line 1045 - Contains hook implementations for Hosting site module.
Code
function _hosting_task_deploy_command_form_title($command_name, $commands) {
$command = isset($commands[$command_name]) ? $commands[$command_name] : '';
$command_title_text = '<span class="command-label"><code>!command_name</code></span> !command';
$missing_prefix = '<span class="alert alert-warning alert-inline"><i class="fa fa-warning"></i> ';
$missing_text = 'MISSING. Add desired command to <code>composer.json:extra.devshop.commands.!name</code>';
$missing_suffix = '</span>';
return t($command_title_text, array(
'!command_name' => $command_name,
'!command' => $command ? '<kbd>' . $command . '</kbd>' : $missing_prefix . t($missing_text, array(
'!name' => $command_name,
)) . $missing_suffix,
));
}