|Component:||Entity CRUD controller|
The default entity template shows an error:
Notice: Undefined variable: url in include() (line 35 of /....../modules/entity/entity.tpl.php).
My code that calls
entity_view is the following:
$block['content'] = entity_view('organization', $employers, 'user_employer', NULL, FALSE);
The issue is that
entity.tpl.php always expects the 'url' variable, but depending on if
$page is set in the original entity_view call,
template_preprocess_entity may not 'set' that variable up. There are a few places that this could be fixed, but I think it makes the most sense to just check for it in the tpl file.