| 116 |
$result = db_query('SELECT * FROM {simpletest_automator_actions}'); |
$result = db_query('SELECT * FROM {simpletest_automator_actions}'); |
| 117 |
} |
} |
| 118 |
while ($action = db_fetch_object($result)) { |
while ($action = db_fetch_object($result)) { |
| 119 |
|
$action->parameters = unserlialize($action->parameters); |
| 120 |
$aid_cache[$action->aid] = $action; |
$aid_cache[$action->aid] = $action; |
| 121 |
if (!is_null($said)) { |
if (!is_null($said)) { |
| 122 |
$said_cache[$said][$action->aid] = $action; |
$said_cache[$said][$action->aid] = $action; |
| 144 |
* The action id of the saved action. |
* The action id of the saved action. |
| 145 |
*/ |
*/ |
| 146 |
function simpletest_automator_action_save($action) { |
function simpletest_automator_action_save($action) { |
| 147 |
|
$action->parameters = serialize($action->parameters); |
| 148 |
if (isset($action->aid)) { |
if (isset($action->aid)) { |
| 149 |
drupal_write_record('simpletest_automator_actions', $action, 'aid'); |
drupal_write_record('simpletest_automator_actions', $action, 'aid'); |
| 150 |
} |
} |