You are here

function access_scheme_save in Access Control Kit 7

Saves an access scheme.

Parameters

object $scheme: An access scheme.

Return value

int Status constant indicating whether the scheme was inserted (SAVED_NEW) or updated (SAVED_UPDATED). When inserting a new scheme, $scheme->sid will contain the ID of the newly created scheme.

See also

AccessSchemeEntityController::save()

9 calls to access_scheme_save()
AccessAPITest::testHandlerCleanup in ./access.test
Test clean-up functions.
AccessAPITest::testHandlerMethods in ./access.test
Test access arbitration through our dummy handler.
AccessGrantInterfaceTest::testGrantInterface in ./access.test
Create and edit an access grant via the user interface.
AccessSchemeFunctionTest::setUp in ./access.test
Overrides DrupalWebTestCase::setUp().
AccessSchemeFunctionTest::testSchemeCRUD in ./access.test
Test basic create, read, update, and delete functions.

... See full list

File

./access.module, line 413
The access control kit module.

Code

function access_scheme_save($scheme) {
  return entity_get_controller('access_scheme')
    ->save($scheme);
}