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.
Downloads
Download dart-6.x-2.x-dev.tar.gztar.gz
61.29 KB
MD5: cb4d3545e4899985ed16f1aa90ab69f1
SHA-1: 1723953dc23b6f0a245c840e9937b8c952bf962f
SHA-256: 69af73dd11cf54498e19103fcb36174f87e9a9a80373f332d71fd203924420ef
Download dart-6.x-2.x-dev.zipzip
69.58 KB
MD5: 4577e42a337737ff043ca80e5ca965e4
SHA-1: 19c898cf252b6b3dcae04f1302ca3169320f1824
SHA-256: 7f70ae99de73302776ddd69255a0c624de76e28f3af40b63ceff80060ab0695d
Release notes
If you are upgrading from 6.x-1.x READ THESE NOTES CAREFULLY OR YOU WILL LOOSE DATA!
New Features & Improvements
- DART tags now take advantage of ctools exportables_ui which means tags can be cloned, imported, exported, added to features, etc.
- Integration with the context module allow for much more powerful display rules.
- The scheduler form is now integrated directly into the DART tag add/edit form.
- Adding key|value pairs and other data to a tag programmatically is now much simpler.
- Other modules can now alter any $tag as soon as its been loaded - extensibility++
- The entire dart_tag_scheduler table has been eliminated.
- A unique class (based on machine name) is now added to every tag for use by the theme
- MUCH cleaner code!
Upgrading
There is an upgrade path from 6.x-1.x to 6.x-2.x however display rules and scheduled events must be updated manually. To upgrade:
- Log in as user/1, put your site in maintenance mode and backup your database.
- Delete the existing dart folder as several stale files have been removed.
- Download the 6.x-2.x branch and place it in your sites/all/modules folder.
- Run www.site.com/update.php
- If you have added
print dart_tag($tag_id);
to any files in your theme or in your custom modules these calls must be changed toprint dart_tag($tag_machinename);
The machine names will be provided to you after the update has finished running.
Notes for Developers
- The main dart_tag table now has a machinename as its primary key and the dtid field has been removed
- There is a new hook call hook_dart_tag_alter(&$tag) that lets you alter any tag just after its been loaded.
- hook_dart_get_vars() is now hook_dart_key_vals(). The new hook expects you to return an array in the form
$key_vals( array('key' => 'foo1', 'val' => 'bar1', 'eval' => TRUE), array('key' => 'foo2', 'val' => 'bar2', 'eval' => TRUE), );
- hook_dart_taxonomy_value_callback() is now hook_dart_taxonomy_callbacks_alter()
- hook_dart_sitzone() has been removed. Use hook_dart_tag_alter(&$tag).
- A bunch of variables have changed:
- dart_prefix -> dart_global_prefix
- dart_sitezone -> dart_global_site & dart_global_zone
- dart_slug -> dart_global_slug
- dart_special_kvs -> dart_special_key_vals
- dart_kvs is now called dart_key_vals and has been serialized differently
- dart_taxonomy_default_value_callback -> dart_taxonomy_default_callback
- A bunch of variables have deleted:
- dart_display_rule_roles
- dart_display_rule_admin