You are here

function getlocations_fields_init in Get Locations 7.2

Same name and namespace in other branches
  1. 7 modules/getlocations_fields/getlocations_fields.module \getlocations_fields_init()

Implements hook_init().

File

modules/getlocations_fields/getlocations_fields.module, line 28
getlocations_fields.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_fields_init() {
  module_load_include('inc', 'getlocations_fields', 'getlocations_fields.functions');
  global $user;
  if ($user->uid > 0 && !getlocations_fields_column_check('data')) {
    drupal_set_message(t('You need to run update <a href="@url">now</a>.', array(
      '@url' => url('update.php'),
    )), 'error');
  }
}