It seems that old D6 style hooks are used: hook_node_type instead of hook_node_type_{op}

See:
http://api.drupal.org/api/search/7/hook_node_type
http://api.drupal.org/api/drupal/developer--hooks--node.php/function/hoo...

Comments

amir simantov’s picture

Issue summary: View changes

How come this function even called if hook_node_type does not exist in d7?

le72’s picture

I confirm, wrong (6.x version) hook is used.
Please find patch attached.

le72’s picture

Status: Active » Needs review
le72’s picture

Can somebody review?

manish-31’s picture

Assigned: Unassigned » manish-31
Status: Needs review » Active

Your patch doesn't apply successfully.

manish-31’s picture

Status: Active » Needs review
StatusFileSize
new1.86 KB

This patch implements correct hook function for Drupal 7. Needs Review.

gchauhan’s picture

Status: Needs review » Reviewed & tested by the community

I have checked your patch. Your patch applied cleanly. So marking it as RTBC.

gaurav.kapoor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.