Trying to get content type from a node entity I'm trying to get the content type from a node entity.

The entity is being loaded as follows:

$synclist = entity_load_single('entity_synclist', $qid);


Now, how would I then get the content type? Would it be as simple as:

$contenttype = $synclist-&gt;type;


Or do I have to do some other Drupal magic?
You're not loading a node there, you're loading an entity of type entity_synclist. Its bundle key might be type, but it depends on what's defined in the module's implementation of hook_entity_info().

To be sure, you can get that information from the entity definition and use it to get the bundle like so:

$info = entity_get_info('entity_synclist');
$bundle_key = $info['entity keys']['bundle'];

$synclist = entity_load_single('entity_synclist', $qid);
$bundle = $synclist-&gt;$bundle_key;