<i>We try to notify this list when <span>API</span> changes
are made in Drupal 7, so
contrib and custom developers have a chance to fix their code before
they have the pain of figuring out why it's broken.</i><br><br>There are a number of changes over the last couple of weeks. Two of these (CSS/JS Aggregation and FAPI select #required) are re-do's after the original API change was hotly discussed, so hoping you didn't take those too seriously when they were announced before.<br>
<br>(<a href="http://drupal.org/node/744384">issue</a>) The signature of <b>drupal_anonymous_user</b>() has changed - it no longer takes an optional $session. If you use drupal_anonymous_user($session), it won't work right any more. Also in this issue, the behavior of session updates changed: Although the session data will always be current, the timestamp will not be with anonymous users.<br>
<br>(<a href="http://drupal.org/node/881530">issue</a>) If you use <b>field_create_field</b>() to create a <b>term reference field</b>, you have to use a vocabulary machine name, not $vid. Validation handlers or widget code will be affected in the same way.<br>
<br>(<a href="http://drupal.org/node/769226">issue</a>) <b>CSS and Javascript aggregation</b> was changed (again) in this issue. Somebody needs to write a blog post or reply. The actual resolution went through many difficult iterations since the last time it got committed. It has significant impact on performance and best practice for module developers, but I was unable to grok the actual outcome.<br>
<br>(<a href="http://drupal.org/node/140783">issue</a>) <b>FAPI Select elements with #required</b> was reworked again since the last API change notification about this. #required = FALSE became the default again, and the new #empty_value and #empty_option influence whether an additional empty value is added. Details are in the issue summary <a href="http://drupal.org/node/140783#comment-3519770">here</a> and <a href="http://drupal.org/node/140783#comment-3533170">here</a>.<br>
<br>(<a href="http://drupal.org/node/356036">issue</a>) <b>field_content_languages</b>() now returns all languages (enabled and disabled) instead of just enabled languages.<br><br>(<a href="http://drupal.org/node/930122">issue</a>) The Drupal variable file_directory_temp (variable_get('file_directory_temp')) has gone away. All who need this information should be using file_directory_temp() anyway, and in reality references should be to temporary://<whatever> when working with temporary files.<br>
<br>(<a href="http://drupal.org/node/438224">issue</a>) The permission named '<b>post comments without approval</b>' was renamed to 'skip comment approval'. If you have a test or other use of this permission, your code is broken.<br>
<br>Beta now! We're getting there.<br><br>As always, if you know more about these than I do (it doesn't take much) then reply to this and educate us better about it. And contribute to the appropriate documentation as well.<br>
<br>Thanks,<br>-Randy<br><br>-- <br>Randy Fay<br>Drupal Module and Site Development<br><a href="mailto:randy@randyfay.com">randy@randyfay.com</a><br>+1 970.462.7450<br><br>