// Add language dropdown to visual composer settings
if (function_exists('vc_add_param')) {
vc_add_param('vc_row', array(
'type' => 'dropdown',
'heading' => "Language",
'param_name' => 'language',
'value' => array("English", "Russian"),
'description' => __("Select Language", "discprofile"),
'weight' => 1, // default 0 (unsorted, appened to bottom, 1- append to top)
));

$settings = array(
'html_template' => locate_template('vc_templates/vc_row.php')
);

// Remap shortcode with custom template
$new_map = vc_map_update('vc_row', $settings);

// Remove default vc_row
vc_remove_element('vc_row');

// Remap shortcode with custom template
vc_map( $new_map['vc_row'] );
}
}

This is the code I'm using, but I get the following error:
Wrong vc_map object. Base attribute is required

Any ideas?