You are here

function ctools_stylizer_image_processor::command_workspace in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 includes/stylizer.inc \ctools_stylizer_image_processor::command_workspace()

Set the current workspace.

File

includes/stylizer.inc, line 368
Create customized CSS and images from palettes created by user input.

Class

ctools_stylizer_image_processor

Code

function command_workspace($name) {
  $this
    ->log("Set workspace: {$name}");
  if (empty($this->workspaces[$name])) {
    $this
      ->log("Workspace {$name} does not exist.", 'error');
    return;
  }
  $this
    ->set_current_workspace($name);
}