Skip to content
Snippets Groups Projects
Commit df37a552 authored by Rizwan Siddiquee's avatar Rizwan Siddiquee
Browse files

remove array_chunk

parent 35ef9902
Branches 7.x-1.x
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ function custom_table_migrate_data_port_to_mongodb_form_submit($form, &$form_sta
// Fetch Table's Data form $tablename.
$result = db_query('SELECT * FROM {'. $tablename . '}');
foreach (array_chunk($result, 100) as $value) {
foreach ($result as $value) {
$operations[] = array(
"custom_table_migrate_batch_porting_mysql_table_to_mongodb",
array($value, $tablename, $mysql_int_types, $mysql_float_types),
......
......@@ -13,7 +13,7 @@ function custom_table_migrate_menu() {
'title' => 'Migrate Custom Table',
'description' => 'This Module use to Migrate Custom Table from Mysql to Mongodb',
'page callback' => 'drupal_get_form',
'page arguments' => array('custom_table_data_port_to_mongodb_form'),
'page arguments' => array('custom_table_migrate_data_port_to_mongodb_form'),
'access arguments' => array('administer site configuration'),
'file' => 'custom_table_migrate.admin.inc',
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment