Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you update a site from D6 to D7 it leaves behind a whole bunch of unnecessary variables:
- realname_fields
- realname_homepage
- realname_max_username
- realname_myacct
- realname_nodeapi
- realname_nofollow
- realname_notver
- realname_profile_module
- realname_recalculate
- realname_search_enable
- realname_search_login
- realname_theme
- realname_user_disable
- realname_use_title
- realname_view
These should be removed during the upgrade.
Comment | File | Size | Author |
---|---|---|---|
#1 | realname-n2469383-1.patch | 955 bytes | DamienMcKenna |
Comments
Comment #1
DamienMcKennaThis removes the unnecessary variables.
Comment #2
DamienMcKennaClarified the title. It also seems that the tokens have changed, so usernames end up being e.g. "%1 %2" instead of "[user:profile-first-name] [user:profile-last-name]".
Comment #3
hass CreditAttribution: hass commentedIsn't it not better to name the update hook 7001?
Comment #4
DamienMcKenna@hass: *shrug*? It's the first update for v7.x-1.x of the module?
Comment #5
hass CreditAttribution: hass commentedA hook 7000 already exists, see http://cgit.drupalcode.org/realname/tree/realname.install#n100 . This means a lot of sites executed this already and have therefore stale variables in their database on schema version 7000. We should cleanup these sites, too and not only the sites who are still stuck at D6 and trying to upgrade.
Comment #6
DamienMcKennaOk, it's the second update. I still don't see why we need to haggle over the number - just apply it, change the number if you want, but otherwise move along.
Comment #7
hass CreditAttribution: hass commented