function _rules_upgrade_fetch_item
Fetches a single item (rule | rule set).
1 call to _rules_upgrade_fetch_item()
- rules_upgrade_form_submit in includes/
rules.upgrade.inc - Submit handler for the form.
File
-
includes/
rules.upgrade.inc, line 154
Code
function _rules_upgrade_fetch_item($name, $table) {
$query = db_select($table, 'r')->fields('r')
->condition('name', $name);
$row = $query->execute()
->fetchAssoc();
return unserialize($row['data']);
}