How to save content type before saving an exported view through code?
Change your install function to

$name = 'your content type Machine name';

// Define the node type.
$jobs = array(
'type' =&gt; $name,
'name' =&gt; $t('your content type name'),
'base' =&gt; 'node_content',
'title_label' =&gt; $t(' Title'),
'description' =&gt; $t('Description.'),
'custom' =&gt; TRUE,
);

// Set other node defaults not declared above.
$content_type = node_type_set_defaults($jobs);


Remove node info hook from .module file and start your function name in .module file with your module name.