function drush_patterns_list in Patterns 6.2
patterns list command callback.
1 string reference to 'drush_patterns_list'
- patterns_drush_command in ./
patterns.drush.inc - Implementation of hook_drush_command().
File
- ./
patterns.drush.inc, line 299 - Drush Patterns module commands
Code
function drush_patterns_list() {
$patterns = patterns_get_patterns();
$pipe = array();
$rows[] = array(
dt('Id'),
dt('Name'),
dt('Title'),
dt('Status'),
dt('Version'),
);
foreach ($patterns as $pid => $pattern) {
$rows[] = array(
$pattern->pid,
$pattern->name,
$pattern->title,
$pattern->status,
$pattern->info['version'],
);
$pipe[] = "{$pattern->title}";
}
drush_print_table($rows, TRUE);
drush_print_pipe(implode(' ', $pipe));
}