function stylizer_ui::access

Overrides ctools_export_ui::access

File

stylizer/plugins/export_ui/stylizer_ui.class.php, line 9

Class

stylizer_ui
UI class for Stylizer.

Code

public function access($op, $item) {
    $access = parent::access($op, $item);
    if ($op == 'add' && $access && empty($this->base_types)) {
        // Make sure there are base styles defined.
        $access = FALSE;
    }
    return $access;
}