function profile_to_cck_configure() {
$output =
t("Easily convert profile data to a CCK node type of your choice. Choose your settings below. On the next screen, you'll be able to match your profile dat
a with the fields of your CCK node type.");
d. This module\'s purpose is to convert profile data to a CCK type.'), 'error');
}
else {
}
return $output;
}
function profile_to_cck_convert_form() {
$profile_fields =
db_query("SELECT fid, title, name, type, options FROM {profile_
fields}");
$form['field_match'] =
array(
'#type' => 'fieldset',
'#title' =>
t('Field Match'),
'#tree' => TRUE
);
// print_r($profile_field);
$title = $profile_field['title'];
$form['field_match'][$title]['node_field'] =
array(
'#type' => 'markup',
);
foreach (content_fields(NULL, $profile_node) as $node_field) {
$fields[] = $node_field['field_name'];
}
$form['field_match'][$title]['profile_field'] =
array(
'#type' => 'select',
'#options' => $fields,
);
}
$form['field_match']['submit'] =
array(
'#type' => 'submit',
'#value' =>
t('Convert'),
'#weight' => 10
);
// print_r($form);
return $form;
}
function theme_profile_to_cck_convert_form($form) {
$header =
array(t('Profile Field'), t
('Node Field'));
);
}
$form['field_match']['#value'] =
theme('table',
$header,
$rows);
return $output;
}