public function FlexiformAccess::setCtoolsSettings in Flexiform 7
File
- includes/
flexiform.access.inc, line 67 - Contains FlexiformAccess
Class
- FlexiformAccess
- Control access conditions for Flexiforms.
Code
public function setCtoolsSettings($ctools_settings = array(), $save = TRUE) {
$this->settings['logic'] = $ctools_settings['logic'];
$this->conditions = $ctools_settings['plugins'];
// Write back to flexiform.
$this->flexiform->access['settings'] = $this->settings;
$this->flexiform->access['conditions'] = $this->conditions;
if ($save) {
$this->flexiform
->save();
}
}