Index: cck_field_privacy.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck_field_privacy/cck_field_privacy.module,v
retrieving revision 1.3.2.2.2.10
diff -u -p -r1.3.2.2.2.10 cck_field_privacy.module
--- cck_field_privacy.module 21 Mar 2009 20:46:15 -0000 1.3.2.2.2.10
+++ cck_field_privacy.module 3 Sep 2009 21:06:55 -0000
@@ -1,6 +1,9 @@
";
+ $form_field['#title'] .= "
";
//email fields are special, they must be handled a bit differently.
if (in_array($form[$field][0]['#type'], array("email_textfield", "date_combo"))) {
- $form['#field_info'][$field]['widget']['label'] .= "
";
+ $form['#field_info'][$field]['widget']['label'] .= "
";
}
}
else if (isset($form[$field]['#title'])) {
- $form[$field]['#title'] .= "
";
+ $form[$field]['#title'] .= "
";
}
else if (isset($form_field[0]['#title'])) {
- $form_field[0]['#title'] .= "
";
+ $form_field[0]['#title'] .= "
";
}
else {
- $form['#field_info'][$field]['widget']['label'] .= "
";
+ $form['#field_info'][$field]['widget']['label'] .= "
";
}
}
}
@@ -342,6 +345,13 @@ function cck_field_privacy_admin_setting
}
}
+ $form['cckfp_title'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Icon Tool Tip'),
+ '#default_value' => variable_get('cckfp_title', CCKFP_TITLE),
+ '#description' => t('Set the text that will be displayed as a tool tip for the lock icon'),
+ );
+
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save')
@@ -421,5 +431,7 @@ function cck_field_privacy_admin_setting
}
}
variable_set('cckfp_values', serialize($stored_values));
+
+ variable_set('cckfp_title', $form_state['values']['cckfp_title']);
drupal_set_message('Settings Changed.');
-}
\ No newline at end of file
+}