Closed (outdated)
Project:
Inline Entity Form
Version:
7.x-1.5
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2014 at 10:46 UTC
Updated:
17 Feb 2024 at 04:36 UTC
Jump to comment: Most recent
Comments
Comment #1
shablm commentedYou could use $_SERVER['HTTP_REFERER']
Something like:
$url = drupal_parse_url ( $_SERVER['HTTP_REFERER'] );
$path = $url['path'];
if (strpos( $path, 'node' ) != 0) {
$alias = substr($path, strpos( $path, 'node' ));
$parent_node = menu_get_object('node', 1, $alias);
}
Comment #2
dcam commentedI'm closing old IEF support issues. Please feel free to re-open the issue if you still require assistance.