Index: viewfield.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/viewfield/viewfield.module,v
retrieving revision 1.3.2.9
diff -u -p -r1.3.2.9 viewfield.module
--- viewfield.module 10 Jul 2007 23:07:25 -0000 1.3.2.9
+++ viewfield.module 8 Jan 2008 03:01:42 -0000
@@ -354,25 +354,25 @@ function viewfield_widget($op, &$node, $
);
}
+ // TODO: token support right now a bit hacked on ... needs better integration
+ // ev. checkbox to enable/disable use of token-module here
+ if (module_exists('token')) {
+ $form[$field['field_name']]['vargs']['#description'] .= '
'.
+ t('Use the syntax [token] if you want to insert a replacement pattern.');
+ $form[$field['field_name']]['token_help'] = array(
+ '#title' => t('Replacement patterns'),
+ '#type' => 'fieldset',
+ '#collapsible' => TRUE,
+ '#collapsed' => TRUE,
+ );
+ $form[$field['field_name']]['token_help']['help'] = array(
+ '#value' => theme('token_help', 'node'),
+ );
+ } else {
+ $form[$field['field_name']]['vargs']['#description'] .= '
' . t('You may use %nid for the node id of the current node. %author for the node author and %viewer for user viewing the node.');
+ }
}
- // TODO: token support right now a bit hacked on ... needs better integration
- // ev. checkbox to enable/disable use of token-module here
- if (module_exists('token')) {
- $form[$field['field_name']]['vargs']['#description'] .= '
'.
- t('Use the syntax [token] if you want to insert a replacement pattern.');
- $form[$field['field_name']]['token_help'] = array(
- '#title' => t('Replacement patterns'),
- '#type' => 'fieldset',
- '#collapsible' => TRUE,
- '#collapsed' => TRUE,
- );
- $form[$field['field_name']]['token_help']['help'] = array(
- '#value' => theme('token_help', 'node'),
- );
- } else {
- $form[$field['field_name']]['vargs']['#description'] .= '
' . t('You may use %nid for the node id of the current node. %author for the node author and %viewer for user viewing the node.');
- }
return $form;
case 'process form values':