function template_preprocess_nodewords_list in Nodewords: D6 Meta Tags 6.2
Process variables for nodewords-list.tpl.php.
File
- ./
nodewords.admin.inc, line 607 - Administration forms.
Code
function template_preprocess_nodewords_list(&$variables) {
$variables['tags'] = array();
foreach (element_children($variables['form']['tags']) as $tagid) {
$tag =& $variables['form']['tags'][$tagid];
$variables['form']['tags'][$tagid]['weight']['#attributes']['class'] = 'nodewords-weight';
$variables['tags'][$tagid] = (object) array(
'name' => drupal_render($tag['name']),
'type' => drupal_render($tag['type']),
'widget' => drupal_render($tag['widget']),
'description' => drupal_render($tag['description']),
'weight_select' => drupal_render($tag['weight']),
'edit_link' => drupal_render($tag['edit']),
'delete_link' => drupal_render($tag['delete']),
);
}
$variables['form_submit'] = drupal_render($variables['form']);
}