You are here

protected function RevisionAllBase::getSettings in Revision All 7.2

Gets a basic settings array for storing revision_all settings.

Parameters

bool $revision_all_types The "Revision All" checkbox state.:

bool $enable_future The "Enable for all Future Content Types": checkbox state.

bool $prevent_type_override The "Prevent Content Type Revisioning: Overrides" checkbox state.

bool $prevent_node_override The "Prevent Node Revisioning: Overrides" checkbox state.

Return value

array A basic revision_all settings array.

7 calls to RevisionAllBase::getSettings()
RevisionAllBase::setUp in tests/revision_all.test
Implements setUp. Creates a user with 'administer site configuration' permissions as well as any other permissions passed in. Also enables all revision_all settings.
RevisionAllBasicTests::testSettingsSaving in tests/revision_all.test
Tests that revision_all settings are properly saved in the database when the form is submitted.
RevisionAllPreventNodeOverrideTests::setUp in tests/revision_all.test
Implements setUp();
RevisionAllPreventTypeOverrideTests::setUp in tests/revision_all.test
Implements setUp();
RevisionAllTypeRevisioningTests::testRevisionSelectBaseType in tests/revision_all.test
Tests the built-in content type behavior when only some content types are selected.

... See full list

File

tests/revision_all.test, line 43
Tests for Revision All module.

Class

RevisionAllBase
Defines a base class of DrupalWebTestCase and does general setup.

Code

protected function getSettings($revision_all_types = TRUE, $enable_future = TRUE, $prevent_type_override = FALSE, $prevent_node_override = FALSE) {
  $settings = array();
  $settings['revision_all[revision_all_types]'] = $revision_all_types;
  $settings['revision_all[enable_future]'] = $enable_future;
  $settings['revision_all[prevent_type_override]'] = $prevent_type_override;
  $settings['revision_all[prevent_node_override]'] = $prevent_node_override;
  return $settings;
}