function patterns_io_get_patterns_service in Patterns 7
Same name and namespace in other branches
- 7.2 includes/io/io.inc \patterns_io_get_patterns_service()
Prints an HTML formatted list of patterns.
1 string reference to 'patterns_io_get_patterns_service'
- patterns_menu in ./
patterns.module - Implements hook_menu().
File
- includes/
io/ io.inc, line 325 - Functions related to input/output operations.
Code
function patterns_io_get_patterns_service($type = 'ajax') {
if ($type == 'ajax') {
$patterns = patterns_io_get_patterns();
$output = '<div id="all_patterns_div"><strong>' . t('last update:') . '</strong>' . date(DATE_RFC822);
$output .= theme('patterns_list', $patterns);
$output .= '</div>';
print $output;
}
}