You are here

schemaorg_person.install in Schema.org 7

Install, update and uninstall functions for the schemaorg_person feature.

File

example/schemaorg_person/schemaorg_person.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the schemaorg_person feature.
 */

/**
 * Implements hook_disable().
 */
function schemaorg_person_disable() {

  // There is currently a bug in features / core which prevents the content type
  // delete link to be displayed for content types created with features.
  // A message is displayed with a link to the content type delete form.
  _schemaorg_person_show_disable_message();
}

/**
 * Implements hook_uninstall().
 */
function schemaorg_person_uninstall() {
  _schemaorg_person_show_disable_message();
}
function _schemaorg_person_show_disable_message() {
  drupal_set_message('The person content type was not automatically removed. If you want to completely remove this content type and its fields, please browse to the <a href="' . url('admin/structure/types/manage/schemaorg-person/delete') . '">content type delete</a> form.', 'warning');
}