Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 5

commit_restrictions.module

Version

1.19 (checked in on 2008/01/21 at 10:52:40 by jpetso)

Description

Commit Restrictions - Restrict commits, branches and tags based on item path or branch/tag name.

Copyright 2007 by Jakob Petsovits ("jpetso", http://drupal.org/user/56020)

Functions

Namesort iconDescription
commit_restrictions_form_alterImplementation of hook_form_alter(): Add commit restriction settings to the add/edit repository form of the Version Control API module.
commit_restrictions_versioncontrol_branch_accessImplementation of hook_versioncontrol_branch_access(): Determine if the given branch may be assigned to a set of items.
commit_restrictions_versioncontrol_commit_accessImplementation of hook_versioncontrol_commit_access(): Determine if the given commit should be denied or allowed.
commit_restrictions_versioncontrol_extract_repository_dataImplementation of hook_versioncontrol_extract_repository_data(): Extract commit restriction repository additions from the repository editing/adding form's submitted values.
commit_restrictions_versioncontrol_repositoryImplementation of hook_versioncontrol_repository(): Manage (insert, update or delete) additional repository data in the database.
commit_restrictions_versioncontrol_tag_accessImplementation of hook_versioncontrol_tag_access(): Determine if the given tag may be assigned to a set of items.
_commit_restrictions_check_branch_tag_pathsDetermine if the items that are being branched or tagged are matching at least one of the valid branch/tag paths regexps, and return an appropriate error message array.
_commit_restrictions_item_error_message
_commit_restrictions_loadRetrieve a structured array with the database values of the {commit_restrictions} table as array elements. The allowed/forbidden lists already appear as arrays, not as space-separated strings.