summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJody Hamilton2012-07-18 20:46:26 (GMT)
committerJody Hamilton2012-07-18 20:46:26 (GMT)
commite30ab50849b7217a0c58095f040801c387858857 (patch)
treecf6558cfe0795c573dc7a078eff6c3aa3017d716
parenta2b6e31de4cd002d6fc5a840b36541864cc24333 (diff)
remove deprecated code
-rw-r--r--webform_entity.module3
1 files changed, 0 insertions, 3 deletions
diff --git a/webform_entity.module b/webform_entity.module
index 12ee197..30ee9d1 100644
--- a/webform_entity.module
+++ b/webform_entity.module
@@ -1153,7 +1153,6 @@ function webform_entity_preprocess_webform_components_form(&$variables) {
*/
function webform_entity_form_webform_components_submit(&$form, &$form_state) {
$components = $form_state['values']['components'];
- $instances = field_info_instances('webform_submission_entity', $form['#node']->type);
$data = array();
$result = db_query("SELECT webform_entity_data FROM {webform} WHERE nid = :nid", array(':nid' => $form['#node']->nid))->fetchField();
if ($result) {
@@ -1161,8 +1160,6 @@ function webform_entity_form_webform_components_submit(&$form, &$form_state) {
}
foreach ($components as $cid => $component) {
if (isset($component['webform_entity'])) {
- $key = substr($cid, 6);
- $instance = $instances[$key];
$data[$cid] = array(
'weight' => $component['weight'],
'pid' => $component['pid'],