function weight_theme_registry_alter in Weight 6
Same name and namespace in other branches
- 7 weight.module \weight_theme_registry_alter()
Implementation of hook_theme_registry_alter().
Swap in our own replacement for theme_node_admin_nodes(), allowing us to access the node list early on.
File
- ./
weight.module, line 71 - This module uses the sticky column of the node table to add weighting to nodes.
Code
function weight_theme_registry_alter(&$theme_registry) {
if (variable_get('weight_content_admin', FALSE)) {
$path = drupal_get_path('module', 'weight');
$theme_registry['node_admin_nodes']['function'] = 'theme_weight_node_admin_nodes';
$theme_registry['node_admin_nodes']['file'] = $path . '/weight.module';
$theme_registry['node_admin_nodes']['theme path'] = $path;
$theme_registry['node_admin_nodes']['theme paths'][0] = $path;
}
}