Active
Project:
Email Field
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2007 at 09:38 UTC
Updated:
7 Dec 2007 at 09:38 UTC
Just doing my bit. Maybe it is useful to somebody:
I needed multiple emails to be more than just the standard 3.
Here is a quick mod of email.module, based on the patch to set the number of multiple text fields: http://drupal.org/node/81197
Find:
function email_widget_settings($op, $widget) {
switch ($op) {
case 'form':
$form = array();
Insert after:
$form['number'] = array(
'#type' => 'textfield',
'#title' => t('Number of multiple emails'),
'#default_value' => isset($widget['number']) ? $widget['number'] : 3,
'#size' => 15,
'#description' => t('Only relevant if field set to multiple values'),
);
Find:
return array('size', 'link_type');
Replace with:
return array('size', 'link_type', 'number');
Find:
foreach (range(0,2) as $delta) {
Replace with:
foreach (range(0,$field['widget']['number']-1) as $delta) {
Sorry for my hack style mod. Your welcome to add this to the next update if you find it useful. Just note, it looks like adjusting number of multiple might become a feature of CCK D6