| 26 |
l(t('Permissions'), 'admin/build/simpletest_automator/' . $test->said . '/permissions'), |
l(t('Permissions'), 'admin/build/simpletest_automator/' . $test->said . '/permissions'), |
| 27 |
l(t('Actions'), 'admin/build/simpletest_automator/' . $test->said . '/actions'), |
l(t('Actions'), 'admin/build/simpletest_automator/' . $test->said . '/actions'), |
| 28 |
l(t('Export'), 'admin/build/simpletest_automator/' . $test->said . '/export'), |
l(t('Export'), 'admin/build/simpletest_automator/' . $test->said . '/export'), |
| 29 |
|
l(t('Record'), 'admin/build/simpletest_automator/' . $test->said . '/record'), |
| 30 |
l(t('Delete'), 'admin/build/simpletest_automator/' . $test->said . '/delete'), |
l(t('Delete'), 'admin/build/simpletest_automator/' . $test->said . '/delete'), |
| 31 |
); |
); |
| 32 |
} |
} |
| 33 |
if (empty($rows)) { |
if (empty($rows)) { |
| 34 |
$rows = array(array(array('data' => t('No tests found. You can <a href="!url">add a new one</a>.', array('!url' => url('admin/build/simpletest_automator/add'))), 'colspan' => 3))); |
$rows = array(array(array('data' => t('No tests found. You can <a href="!url">add a new one</a>.', array('!url' => url('admin/build/simpletest_automator/add'))), 'colspan' => 8))); |
| 35 |
} |
} |
| 36 |
return theme('table', array('Name', array('data' => t('Operations'), 'colspan' => 6)), $rows); |
return theme('table', array('Name', array('data' => t('Operations'), 'colspan' => 7)), $rows); |
| 37 |
} |
} |
| 38 |
|
|
| 39 |
|
|
| 591 |
return confirm_form($form, t('Are you sure you want to delete %action', array('%action' => $info['label'])), 'admin/build/simpletest_automator/'. $simpletest_automator->said .'/actions'); |
return confirm_form($form, t('Are you sure you want to delete %action', array('%action' => $info['label'])), 'admin/build/simpletest_automator/'. $simpletest_automator->said .'/actions'); |
| 592 |
} |
} |
| 593 |
|
|
| 594 |
|
function simpletest_automator_admin_record($simpletest_automator, $sure = FALSE) { |
| 595 |
|
if ($sure == '1') { |
| 596 |
|
$_COOKIE['simpletest_automator'] = $simpletest_automator->db_prefix; |
| 597 |
|
drupal_goto('<front>'); |
| 598 |
|
} |
| 599 |
|
else { |
| 600 |
|
// TODO: Better text |
| 601 |
|
return t('To record, please click <a href="!url">here</a>.', array('!url' => url('admin/build/simpletest_automator/'. $simpletest_automator->said .'/record/1'))); |
| 602 |
|
} |
| 603 |
|
} |
| 604 |
|
|
| 605 |
function simpletest_automator_admin_export($simpletest_automator, $type = NULL) { |
function simpletest_automator_admin_export($simpletest_automator, $type = NULL) { |
| 606 |
if (empty($type)) { |
if (empty($type)) { |
| 607 |
$items = array( |
$items = array( |