The correct value for the if statment is

if (isset($form['#type'])

the # char is missing

Comments

bdragon’s picture

Status: Active » Closed (works as designed)

No, it's correct. Node settings forms store the node type in $form['type'] in 5.x. That's actually the correct way to target the content type settings forms.