[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/content_access/ -> content_access.module (summary)

(no description)

File Size: 518 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 29 functions

  content_access_menu()
  content_access_node_page_access()
  content_access_admin_settings_access()
  content_access_perm()
  content_access_node_grants()
  content_access_node_access_records()
  content_access_nodeapi()
  content_access_enabled()
  content_access_disable()
  content_access_disabling()
  content_access_get_settings()
  content_access_set_settings()
  content_access_available_settings()
  content_access_get_setting_defaults()
  content_access_get_permission_access()
  content_access_get_permission_by_op()
  content_access_get_type_grant()
  content_access_proccess_grant()
  content_access_own_op()
  content_access_get_rids_per_node_op()
  content_access_per_node_setting()
  content_access_save_per_node_settings()
  content_access_delete_per_node_settings()
  content_access_get_per_node_settings()
  content_access_optimize_grants()
  content_access_node_type()
  content_access_node_access_explain()
  content_access_form_alter()
  _content_access_get_operations()

Functions
Functions that are not part of a class:

content_access_menu()   X-Ref
Implementation of hook_menu().


content_access_node_page_access($node)   X-Ref
No description

content_access_admin_settings_access()   X-Ref
No description

content_access_perm()   X-Ref
Implementation of hook_perm().


content_access_node_grants($account, $op)   X-Ref
Implementation of hook_node_grants().


content_access_node_access_records($node)   X-Ref
Implementation of hook_node_access_records()


content_access_nodeapi($node, $op, $teaser, $page)   X-Ref
Implementation of hook_nodeapi().


content_access_enabled()   X-Ref
Used by the ACL module.


content_access_disable()   X-Ref
Implementation of hook_disable().


content_access_disabling($set = NULL)   X-Ref
Remembers if we have disabled access.


content_access_get_settings($return = 'all', $type = NULL)   X-Ref
Returns the content_access' settings.

param: $return
param: $type

content_access_set_settings($settings)   X-Ref
Saves the content_access settings - needs the complete settings array.


content_access_available_settings()   X-Ref
No description

content_access_get_setting_defaults($setting, $type)   X-Ref
Defines default values for settings.


content_access_get_permission_access($perm, $reset = FALSE)   X-Ref
Returns an array of role ids, that contain the given permission.


content_access_get_permission_by_op($op, $type)   X-Ref
Gets the name of a permission for the given operation, if there is a suiting one.


content_access_get_type_grant($node)   X-Ref
Returns the default grants for a given node type.


content_access_proccess_grant($grant, $gid, $node)   X-Ref
Process a grant, which means add priority, realm and other properties.


content_access_own_op($node, $any_roles, $own_roles)   X-Ref
Determines the grant for the node author and the given allowed roles of a operation.

param: $any_roles
param: $own_roles

content_access_get_rids_per_node_op($op, $node)   X-Ref
Returns optimized role ids for the given operation and node to
grant access for.

If to a role access is granted by permissions, it's not necessary
to write a grant for it. So it won't be returned.

param: $op
param: $node

content_access_per_node_setting($op, $node, $settings = NULL)   X-Ref
Returns the per node role settings. If no per node settings are available,
it will return the content type settings.

param: $op
param: $node
param: $settings
return:

content_access_save_per_node_settings($node, $settings)   X-Ref
Saves custom per node settings in the own content_access table.


content_access_delete_per_node_settings($node)   X-Ref
Deletes all custom per node settings, so that content type defaults are used again.


content_access_get_per_node_settings($node)   X-Ref
Gets the per node settings of a node.


content_access_optimize_grants(&$grants, $node)   X-Ref
Removes grants that doesn't change anything.


content_access_node_type($op, $info)   X-Ref
Implementation of hook_node_type():
Update settings on node type name change.


content_access_node_access_explain($row)   X-Ref
Implementation of hook_node_access_explain().


content_access_form_alter(&$form, $form_state, $form_id)   X-Ref
Implementation of hook_form_alter().


_content_access_get_operations()   X-Ref
Returns an array of operations used by the module.




Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7