You are here

function event_calendar_install in Event Calendar 7

Implements hook_install().

We are using hook_install() to define our node content type and its fields

See also

is_node_type_already_exist()

_create_taxonomy()

_create_content_type()

File

./event_calendar.install, line 20
install file for Event Calendar module.

Code

function event_calendar_install() {
  $node_type = 'event_calendar';
  $ext = 1;
  $node_type = is_node_type_already_exist($node_type, $ext);
  variable_set('event_calendar_node_type', $node_type);

  // Call a custom function to create taxonomy.
  _create_taxonomy();

  // Call a custom function to create content type.
  _create_content_type();
}