Posted by janithpunna on
I want to get the drupal system url (eg: node/12352) from URL alias content/some-content.
but both are not working. The value of $path is retrived as following
$tid = $user->field_job_category['und']['tid'];
$jobcategory = drupal_lookup_path('alias', 'taxonomy/term/'.$tid);
$path = 'content/'.$jobcategory; // content/
Is there any solution?