Closed (fixed)
Project:
Storm
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2009 at 16:15 UTC
Updated:
9 Oct 2009 at 16:20 UTC
Creating an issue so to get an issue number to reference on commits...
All implementations of hook_form within Storm modules can be simplified as per this extract from the api.drupal.org node example module:
if ($type->has_body) {
// In Drupal 6, we can use node_body_field() to get the body and filter
// elements. This replaces the old textarea + filter_form() method of
// setting this up. It will also ensure the teaser splitter gets set up
// properly.
$form['body_field'] = node_body_field($node, $type->body_label, $type->min_word_count);
}
Comments