You are here

function patterns_list_public in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns.module \patterns_list_public()
1 string reference to 'patterns_list_public'
patterns_menu in ./patterns.module
Implements hook_menu().

File

./patterns.module, line 450

Code

function patterns_list_public() {
  drupal_add_css(drupal_get_path('module', 'patterns') . '/css/patterns.css');
  drupal_add_js(drupal_get_path('module', 'patterns') . '/js/patterns.js');
  $patterns = patterns_io_get_public_patterns(variable_get('patterns_refresh_from_fs', TRUE), FALSE);
  $output = theme('patterns_list', $patterns);
  return $output;
}