function views_patterns_mappings in Patterns 5
1 call to views_patterns_mappings()
- views_patterns in components/
views.inc
File
- components/
views.inc, line 428
Code
function views_patterns_mappings($type) {
switch ($type) {
case 'page':
$mappings = array(
'type' => 'page_type',
'title' => 'page_title',
'pager' => 'use_pager',
'limit' => 'nodes_per_page',
'numnodes' => 'nodes_per_page',
'count' => 'nodes_per_page',
'header' => 'page_header',
'header_format' => 'page_header_format',
'footer' => 'page_footer',
'footer_format' => 'page_footer_format',
'empty' => 'page_empty',
'empty_format' => 'page_empty_format',
);
break;
case 'block':
$mappings = array(
'type' => 'block_type',
'title' => 'block_title',
'limit' => 'nodes_per_block',
'numnodes' => 'nodes_per_block',
'more' => 'block_more',
'header' => 'block_header',
'header_format' => 'block_header_format',
'page_header' => 'block_use_page_header',
'footer' => 'block_footer',
'footer_format' => 'block_footer_format',
'page_footer' => 'block_use_page_footer',
'empty' => 'block_empty',
'empty_format' => 'block_empty_format',
'page_empty' => 'block_use_page_empty',
);
break;
case 'menu':
$mappings = array(
'tab' => 'menu_tab',
'tab_weight' => 'menu_tab_weight',
'title' => 'menu_title',
'tab_default' => 'menu_tab_default',
'tab_default_parent_type' => 'menu_tab_default_parent_type',
'parent_tab_weight' => 'menu_parent_tab_weight',
'parent_title' => 'menu_parent_title',
);
break;
case 'base':
$mappings = array(
'argphp' => 'view_args_php',
'php' => 'view_args_php',
);
break;
}
return $mappings;
}