function views_system_views_data_alter in Views System 7.4
Same name and namespace in other branches
- 6.3 views/views_system.views.inc \views_system_views_data_alter()
- 7.3 views/views_system.views.inc \views_system_views_data_alter()
Implements of hook_views_data_alter().
File
- views/
views_system.views.inc, line 682 - Provide views data and handlers for the views_system module.
Code
function views_system_views_data_alter(&$data) {
$data['system']['filename'] = NULL;
$data['system']['bootstrap'] = array(
'title' => t('Bootstrap'),
'help' => t("Boolean indicating whether this module is loaded during Drupal's early bootstrapping phase (e.g. even before the page cache is consulted)."),
'field' => array(
'handler' => 'views_handler_field_boolean',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
'name field' => 'bootstrap',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
$data['system']['info'] = array(
'title' => t('Info'),
'help' => t("A serialized array containing information from the module's .info file; keys can include name, description, package, version, core, dependencies, and php."),
'field' => array(
'handler' => 'views_handler_field_serialized',
'click sortable' => FALSE,
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'name field' => 'info',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
$data['system']['name']['title'] = t('Name');
$data['system']['owner'] = array(
'title' => t('Owner'),
'help' => t("This theme's 'parent'. Can be either a theme or an engine."),
'field' => array(
'handler' => 'views_handler_field',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
'name field' => 'owner',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
$data['system']['status']['filter']['label'] = t('Status');
$data['system']['status']['filter']['type'] = 'enabled-disabled';
$data['system']['type'] = NULL;
$data['system']['weight'] = array(
'title' => t('Weight'),
'help' => t("The order in which this module's hooks should be invoked relative to other modules. Equal-weighted modules are ordered by name."),
'field' => array(
'handler' => 'views_handler_field_numeric',
'click sortable' => TRUE,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
'name field' => 'weight',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
}