You are here

function focal_point_install in Focal Point 7

Implements hook_install().

File

./focal_point.install, line 11
Install hooks for focal_point.

Code

function focal_point_install() {
  $t = get_t();
  $count = focal_point_migrate_imagefield_focus_data();
  $count_plural = format_plural($count, '%count image', '%count images', array(
    '%count' => $count,
  ));
  if (!empty($count)) {
    drupal_set_message($t('Migrated the imagefield_focus data for @count images. Any changes you make to imagefield_focus data from now on will not be reflected in your focal point data.', array(
      '@count' => $count_plural,
    )));
  }
  focal_point_update_7005();
}