$view = new view;
$view->name = 'enabled_modules_admin_disabled';
$view->description = 'A view designed for site administrators, listing the disabled modules in this Drupal installation.';
$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(
'package' => array(
'label' => 'Package',
'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' => 'Other',
'hide_empty' => 0,
'empty_zero' => 0,
'exclude' => 1,
'id' => 'package',
'table' => 'enabled_modules_system',
'field' => 'package',
'relationship' => 'none',
),
'filename' => array(
'label' => 'Filename',
'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' => 1,
'id' => 'filename',
'table' => 'system',
'field' => 'filename',
'relationship' => 'none',
),
'name' => array(
'label' => 'Name',
'alter' => array(
'alter_text' => 1,
'text' => '[name]
([filename])',
'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' => 'name',
'table' => 'enabled_modules_system',
'field' => 'name',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
'description' => array(
'label' => 'Description',
'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' => 'description',
'table' => 'enabled_modules_system',
'field' => 'description',
'relationship' => 'none',
),
'code' => array(
'label' => 'Code',
'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' => 'code',
'table' => 'enabled_modules_system',
'field' => 'code',
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'package' => array(
'order' => 'ASC',
'id' => 'package',
'table' => 'enabled_modules_system',
'field' => 'package',
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => '=',
'value' => 'module',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'case' => 0,
'id' => 'type',
'table' => 'system',
'field' => 'type',
'relationship' => 'none',
),
'status' => array(
'operator' => '=',
'value' => '0',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status',
'table' => 'system',
'field' => 'status',
'relationship' => 'none',
),
'schema_version' => array(
'operator' => '!=',
'value' => '-1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'case' => 1,
'id' => 'schema_version',
'table' => 'system',
'field' => 'schema_version',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
));
$handler->override_option('access', array(
'type' => 'perm',
'perm' => 'access site reports',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('title', 'Disabled Modules');
$handler->override_option('header', '
All disabled modules are listed here. If a module\'s codebase is not found, the module is marked missing.
Your overall Drupal site is presently installed in this directory:
There are no disabled (previously enabled) modules in the system.
'); $handler->override_option('empty_format', '1'); $handler->override_option('items_per_page', 0); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => 'package', 'override' => 1, 'sticky' => 1, 'order' => 'asc', 'columns' => array( 'package' => 'package', 'filename' => 'filename', 'name' => 'name', 'description' => 'description', 'nothing' => 'nothing', ), 'info' => array( 'package' => array( 'sortable' => 0, 'separator' => '', ), 'filename' => array( 'sortable' => 0, 'separator' => '', ), 'name' => array( 'sortable' => 0, 'separator' => '', ), 'description' => array( 'sortable' => 0, 'separator' => '', ), 'nothing' => array( 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'admin/reports/enabled_modules/disabled'); $handler->override_option('menu', array( 'type' => 'tab', 'title' => 'Disabled', 'description' => '', 'weight' => '0', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', ));