2
是否有解決方案將ID添加到默認的Drupal錯誤列表項目?Drupal:將ID添加到錯誤列表
目前我得到這個:
<div class="messages error" id="inline-messages">
<ul>
<li>Name is required.</li>
<li>Email is required.</li>
<li>Message is required.</li>
</ul>
</div>
但我想有字段名作爲ID:
<div class="messages error" id="inline-messages">
<ul>
<li id="form-field-name">Name is required.</li>
<li id="form-field-email">Email is required.</li>
<li id="form-field-message">Message is required.</li>
</ul>
</div>
插件使用:http://drupal.org/project/inline_messages
有什麼建議?