Go to the documentation of this file.00001 <?php
00002
00008 $plugin = array(
00009 'name' => 'node',
00010 'base_table' => 'node',
00011 'created_column' => 'created',
00012 'available_sorts' => array(
00013 'title:DESC' => t('Title')
00014 ),
00015 'form_wizard_class' => array(
00016 'file' => 'views_ui_node_views_wizard.class.php',
00017 'class' => 'ViewsUiNodeViewsWizard',
00018 ),
00019 'title' => t('Content'),
00020 'filters' => array(
00021 'status' => array(
00022 'value' => NODE_PUBLISHED,
00023 'table' => 'node',
00024 'field' => 'status',
00025 ),
00026 ),
00027 'path_field' => array(
00028 'id' => 'nid',
00029 'table' => 'node',
00030 'field' => 'nid',
00031 'exclude' => TRUE,
00032 'link_to_node' => FALSE,
00033 'alter' => array(
00034 'alter_text' => 1,
00035 'text' => 'node/[nid]',
00036 ),
00037 ),
00038 );
00039
00040 if (module_exists('statistics')) {
00041 $plugin['available_sorts']['node_counter-totalcount:DESC'] = t('Number of hits');
00042 }