| 1 |
<?php |
<?php |
| 2 |
// $Id: luceneapi.admin.inc,v 1.24.2.51 2009/11/15 17:54:37 cpliakas Exp $ |
// $Id: luceneapi.admin.inc,v 1.25 2009/11/15 19:22:13 cpliakas Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 560 |
// loops over tasks, checks if a button was selected |
// loops over tasks, checks if a button was selected |
| 561 |
foreach (luceneapi_admin_tasks_get(TRUE) as $task => $translated_title) { |
foreach (luceneapi_admin_tasks_get(TRUE) as $task => $translated_title) { |
| 562 |
if ($form_state['values']['op'] == $translated_title) { |
if ($form_state['values']['op'] == $translated_title) { |
| 563 |
drupal_goto(sprintf('admin/settings/%s/%s', $form_state['values']['module'], $task)); |
drupal_goto(sprintf('admin/config/search/%s/%s', $form_state['values']['module'], $task)); |
| 564 |
} |
} |
| 565 |
} |
} |
| 566 |
} |
} |
| 577 |
*/ |
*/ |
| 578 |
function _luceneapi_return_path_get($module, $task) { |
function _luceneapi_return_path_get($module, $task) { |
| 579 |
$path = ('optimize' == $task || 'cache' == $task) ? 'performance' : 'statistics'; |
$path = ('optimize' == $task || 'cache' == $task) ? 'performance' : 'statistics'; |
| 580 |
return sprintf('admin/settings/%s/%s', $module, $path); |
return sprintf('admin/config/search/%s/%s', $module, $path); |
| 581 |
} |
} |
| 582 |
|
|
| 583 |
/** |
/** |