Replace all instances of node_type_get_label() and node_type_get_name() with node_get_type_label().
Change record: node_type_get_name() renamed to node_type_get_label(), _node_extract_type() renamed to node_type_get_base()
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2422643-7.patch | 3.27 KB | Palashvijay4O |
| #5 | 2422643-5.patch | 3.27 KB | Palashvijay4O |
| #3 | 2422643-3.patch | 3.29 KB | Palashvijay4O |
Comments
Comment #1
legovaerComment #2
legovaerComment #3
Palashvijay4O commentedWell It seems to me that node_type_get_label() is not there anywhere so I just replaced the node_type_get_name(). Here's a patch.
Comment #4
legovaerInstead of only providing the $node->type, you should pass the entire $node object as in the following example;
$type_name = node_get_type_label($node->type);Should be replaced with:
$type_name = node_get_type_label($node);Comment #5
Palashvijay4O commentedOops forgot that ... I think now it would be fine !!
Comment #6
legovaerWe're almost there!
According to the Drupal Coding Standards, there should be no white space after an opening "(";
($node->type ? check_plain( node_get_type_label($node)) : ''),Comment #7
Palashvijay4O commentedThat was really a silly one . :)
Comment #8
legovaerReviewed patch and looks ok.
Comment #9
pfrenssenThanks a lot!