Fix for theme registery alter

  1. function ctcd_theme_registry_alter(&$theme_registry) {
  2.   ///dsm($theme_registry);
  3.   dsm('here in theme_registry_alter');
  4.   if(isset($theme_registry['table'])) {
  5.     $theme_registry['table']['function'] = 'ctcd_theme_table';
  6.   }
  7.   return $theme_registry;
  8. }
  9.  
  10. function ctcd_theme_table($header, $rows, $attributes = array(), $caption = NULL) {
  11.   dsm('THEME OVERRIDE FUNCTION CALLED');
  12.  
  13.   theme_table($header, $rows, $attributes, $caption);
  14. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.