You are here

function weight_theme_registry_alter in Weight 7

Same name and namespace in other branches
  1. 6 weight.module \weight_theme_registry_alter()

Implements 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 76
This module uses the sticky column of the node table to add weighting to nodes.

Code

function weight_theme_registry_alter(&$theme_registry) {
  $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;
}