Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jul 2011 at 15:05 UTC
Updated:
29 Jul 2014 at 19:49 UTC
Jump to comment: Most recent
Comments
Comment #1
pp commentedsee pathauto module:
http://drupalcontrib.org/api/drupal/contributions--pathauto--pathauto.mo...
Comment #2
jhodgdonThanks! Agreed on the problem and the patch, which should apply fine for D8 and D7.
Note: The problem is that node_get_types() returns an array of objects, so you need to use $obj->type to get the type name to use in the sample function body. An alternate fix would be to call node_type_get_names() instead of node_type_get_types(), I guess, but IMO this patch is fine.
Comment #3
webchickCommitted and pushed to 8.x and 7.x. Thanks!