$view = new view; $view->name = 'enabled_modules_admin_block'; $view->description = 'A view designed for site administrators, listing enabled modules in this Drupal installation with links to administer.'; $view->tag = 'enabled_modules'; $view->view_php = ''; $view->base_table = 'system'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'version' => array( 'label' => 'Version', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'version', 'table' => 'enabled_modules_system', 'field' => 'version', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'name' => array( 'label' => 'Name', 'alter' => array( 'alter_text' => 0, 'text' => '[name]', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 1, 'max_length' => '20', 'word_boundary' => 0, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'name', 'table' => 'enabled_modules_system', 'field' => 'name', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'weight' => array( 'label' => 'Weight', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'set_precision' => FALSE, 'precision' => 0, 'decimal' => '.', 'separator' => ',', 'prefix' => '', 'suffix' => '', 'exclude' => 0, 'id' => 'weight', 'table' => 'system', 'field' => 'weight', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'package' => array( 'order' => 'ASC', 'id' => 'package', 'table' => 'enabled_modules_system', 'field' => 'package', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => '=', 'value' => 'module', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => 'type_op', 'label' => 'System: Type', 'use_operator' => 0, 'identifier' => 'type', 'optional' => 1, 'remember' => 0, ), 'case' => 0, 'id' => 'type', 'table' => 'system', 'field' => 'type', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'system', 'field' => 'status', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'perm', 'perm' => 'access site reports', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Enabled Modules'); $handler->override_option('header_format', '3'); $handler->override_option('header_empty', 0); $handler->override_option('items_per_page', 0); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'version' => 'version', 'weight' => 'weight', 'package' => 'package', 'name' => 'name', 'filename' => 'filename', 'description' => 'description', 'administer' => 'administer', ), 'info' => array( 'version' => array( 'sortable' => 0, 'separator' => '', ), 'weight' => array( 'sortable' => 1, 'separator' => '', ), 'package' => array( 'sortable' => 1, 'separator' => '', ), 'name' => array( 'sortable' => 1, 'separator' => '', ), 'filename' => array( 'sortable' => 1, 'separator' => '', ), 'description' => array( 'sortable' => 0, 'separator' => '', ), 'administer' => array( 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1);