You are here

function user_stats_update_3 in User Stats 5

Implementation of hook_update()

File

./user_stats.install, line 89

Code

function user_stats_update_3() {
  $ret = array();

  // We use 4 instead of PROFILE_HIDDEN as this constant is not available during updates
  $ret[] = update_sql("INSERT INTO {profile_fields} (\n    title, name, explanation, category, page, type, weight, required, register, visibility, options) VALUES\n    ('Login count', 'user_login_count', '', 'Statistics', '', 'textfield', 0, 0, 0, 4, '')");
  return $ret;
}