function 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.

1 call to ctools_export_set_status()
ctools_export_crud_set_status in includes/export.inc
Change the status of a certain object.

File

includes/export.inc, line 1098

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);
}