Posted by liliplanet on February 26, 2008 at 1:09pm
Hi Everyone,
I'm trying to install http://www.drupal.org/project/phplist, but for it to update in the external php installation, have to replace profile.module fields (which we don't use) with our nodeprofile fields ..
Would you be so kind to point me in the right direction in replacing the fields for my phplist please?
currently in the phplist.module
if (module_exists('profile)) {
$form['general']['mapping'] = array(
'#title' => 'Attribute mapping',
'#type' => 'fieldset',
'#description' => t('Use these settings to transfer first and last names from Drupal profiles to phpList. If the phpList attributes do not already exist, they will be created. Use the SYNCHRONISE NOW link to refresh all existing accounts.')
);
$form['general']['mapping']['phplist_profilefirstname'] = array(
'#type' => 'textfield',
'#title' => t('Drupal profile field for FIRST NAME'),
'#default_value' => variable_get('phplist_profilefirstname', 'profile_')
);
$form['general']['mapping']['phplist_plfirstname'] = array(
'#type' => 'textfield',
'#title' => t('phpList FIRST NAME attribute'),
'#default_value' => variable_get('phplist_plfirstname', 'First Name')
);
$form['general']['mapping']['phplist_profilelastname'] = array(
'#type' => 'textfield',
'#title' => t('Drupal profile field for LAST NAME'),
'#default_value' => variable_get('phplist_profilelastname', 'profile_')
);
$form['general']['mapping']['phplist_pllastname'] = array(
'#type' => 'textfield',
'#title' => t('phpList LAST NAME attribute'),
'#default_value' => variable_get('phplist_pllastname', 'Last Name')
);
$form['general']['mapping']['phplist_roles'] = array(
'#type' => 'checkbox',
'#title' => t('Map non-system roles'),
'#options' => array(0, 1),
'#default_value' => variable_get('phplist_roles', 0),
'#description' => t('Create phpList attributes for any custom user roles')
);
}and would like the following fields please :
In my Drupal database fields are as follows:
Table: drupal_content_type_profile
field_name_value
field_lastname_value
field_company_value
field_telephone_value
field_profession_value
field_country_value
etc.
Would most most appreciate your help on this.
Lilian
