Project

General

Profile

« Previous | Next » 

Revision dd1c109a

Added by Andreas Kohlbecker over 9 years ago

more flexible table of content creation, hook_cdm_feature_node_toc_items_alter() no longer needed

View differences:

7.x/modules/cdm_dataportal/theme/cdm_dataportal.descriptions.theme
32 32
 */
33 33
function theme_cdm_feature_name($variables) {
34 34
  $feature_name = $variables['feature_name'];
35
  // TODO replace by using translations ?
36 35
  return t($feature_name);
37 36
}
38 37

  
......
179 178
            ),
180 179
          )
181 180
        );
181
        cdm_toc_list_add_item(cdm_term_representation($node->feature), $node->feature->uuid);
182 182
      } // END: skip empty block content
183 183
    } // END: skip empty or supressed features
184 184
  } // END: creating a block per feature

Also available in: Unified diff