You are here

function scald_example_content_type_install in Scald: Media Management made easy 6

Implements hook_install.

File

scald_example_content_type/scald_example_content_type.install, line 9

Code

function scald_example_content_type_install() {
  module_load_include('inc', 'node', 'content_types');
  $form_state = array(
    'values' => array(
      'name' => 'Example image provider',
      'type' => 'scald_example_content_type',
      'description' => 'This example content type allows the creation of Scald Image Atoms via the creation of node with image attached',
      'body_label' => '',
    ),
  );
  drupal_execute('node_type_form', $form_state);
}