Timeline for In hook_node_insert drupal_goto with alias name not working
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 18, 2013 at 13:30 | vote | accept | Ram | ||
Nov 18, 2013 at 13:19 | comment | added | Jayendra Kainthola | @Ram, I have updated answer with working code. | |
Nov 18, 2013 at 13:19 | history | edited | Jayendra Kainthola | CC BY-SA 3.0 |
added 589 characters in body
|
Nov 18, 2013 at 12:50 | comment | added | Ram | pathauto_create_alias() first parameter module i can give module only know ??? i gave node is tat correct rite ? then wats the issue? | |
Nov 18, 2013 at 12:49 | comment | added | Jayendra Kainthola |
@Ram, it mean pathauto_create_alias() function is not working in your condition.
|
|
Nov 18, 2013 at 12:48 | comment | added | Ram | this is wat print_r($alias) is printing node/212 | |
Nov 18, 2013 at 12:38 | comment | added | Jayendra Kainthola |
@Ram, Have you checked $alias in your function before drupal_goto() function.
|
|
Nov 18, 2013 at 12:30 | comment | added | Ram | tried this one module_load_include('inc', 'pathauto', 'pathauto'); instead of module_load_include('inc', 'pathauto'); still it is redirecting to node/nid not alias name | |
Nov 18, 2013 at 12:14 | history | answered | Jayendra Kainthola | CC BY-SA 3.0 |