Create Content Type from code Following this post: 
    http://www.sitepoint.com/creating-a-new-drupal-node-type/

I have tried to create a custom content-type from code like here: 

Update code
https://github.com/jmvelasco/drupal

But the way, after install/activate it I get these warnings:

Warning: Illegal offset type in isset or empty in FieldInfo-&gt;getField() (line 270 of /users/gen00/web/html/modules/field/field.info.class.inc).
Warning: Illegal offset type in isset or empty in FieldInfo-&gt;getField() (line 274 of /users/gen00/web/html/modules/field/field.info.class.inc).
Warning: Illegal offset type in FieldInfo-&gt;getField() (line 291 of /users/gen00/web/html/modules/field/field.info.class.inc).
Warning: Illegal offset type in isset or empty in FieldInfo-&gt;getField() (line 270 of /users/gen00/web/html/modules/field/field.info.class.inc).
Warning: Illegal offset type in isset or empty in FieldInfo-&gt;getField() (line 274 of /users/gen00/web/html/modules/field/field.info.class.inc).
Warning: Illegal offset type in FieldInfo-&gt;getField() (line 291 of /users/gen00/web/html/modules/field/field.info.class.inc).
Warning: Illegal offset type in isset or empty in FieldInfo-&gt;getField() (line 270 of /users/gen00/web/html/modules/field/field.info.class.inc).
Warning: Illegal offset type in isset or empty in FieldInfo-&gt;getField() (line 274 of /users/gen00/web/html/modules/field/field.info.class.inc).
Warning: Illegal offset type in FieldInfo-&gt;getField() (line 291 of /users/gen00/web/html/modules/field/field.info.class.inc).


Although the content-type is apparently created.

EDIT the content could be created once I update the base value

But when go to Create Content of this new content-type, I have the following error

array
  'error' =&gt; 
    array
      0 =&gt; string '&lt;em class="placeholder"&gt;Warning&lt;/em&gt;: Missing argument 3 for node_form(), called in /users/gen00/web/html/modules/node/node.pages.inc on line 161 and defined in &lt;em class="placeholder"&gt;node_form()&lt;/em&gt; (line &lt;em class="placeholder"&gt;107&lt;/em&gt; of &lt;em class="placeholder"&gt;/users/gen00/web/html/modules/node/node.pages.inc&lt;/em&gt;).' (length=324)


Also, when uninstall the module I get this notice:

Notice: Trying to get property of non-object in content_access_node_type_delete() (line 524 of /users/gen00/web/html/sites/all/modules/contrib/content_access/content_access.module).


I can't figure out where is my mistake and I have come here wondering if any drupal-ninja could help me to understand my mistake and create this content-type correctly. Anyone?

Thanks in advance.
In your hook_node_info, 'base' should not be node. It has to be something else and generally your module name is advised.

Explanation from the node_example.module

// 'base' tells Drupal the base string for hook functions.
// This is often the module name; if base is set to 'mymodule',
// Drupal would call mymodule_insert() or similar for node
// hooks. In our case, the base is 'node_example'.