function template_preprocess_nodewords_edit_attributes in Nodewords: D6 Meta Tags 6.2
Process variables for nodewords-edit-attributes.tpl.php.
File
- ./
nodewords.admin.inc, line 560 - Administration forms.
Code
function template_preprocess_nodewords_edit_attributes(&$variables) {
$variables['attributes'] = array();
$form = $variables['form'];
foreach (element_children($form['attributes']) as $child) {
$attribute =& $form['attributes'][$child];
if (isset($attribute['attid'])) {
$attribute['weight']['#attributes']['class'] = 'nodewords-weight';
$variables['attributes'][] = (object) array(
'delete_check' => drupal_render($attribute['delete']),
'name' => drupal_render($attribute['name']),
'value' => drupal_render($attribute['value']),
'weight_select' => drupal_render($attribute['weight']),
);
}
}
$variables['form_submit'] = drupal_render($form);
}