function ctools_export_set_status in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/export.inc \ctools_export_set_status()
Set the status of a default $object as a variable.
The status, in this case, is whether or not it is 'disabled'. This function does not check to make sure $object actually exists.
File
- includes/
export.inc, line 857 - Contains code to make it easier to have exportable objects.
Code
function ctools_export_set_status($table, $name, $new_status = TRUE) {
$schema = ctools_export_get_schema($table);
$status = variable_get($schema['export']['status'], array());
$status[$name] = $new_status;
variable_set($schema['export']['status'], $status);
}