You are here

function content_access_get_per_node_settings in Content Access 6

Same name and namespace in other branches
  1. 8 content_access.module \content_access_get_per_node_settings()
  2. 5 content_access.module \content_access_get_per_node_settings()
  3. 7 content_access.module \content_access_get_per_node_settings()

Gets the per node settings of a node.

@note This function won't apply defaults, so if there are no other settings it will return an empty array.

2 calls to content_access_get_per_node_settings()
content_access_page in ./content_access.admin.inc
Per node settings page.
content_access_per_node_setting in ./content_access.module
Returns the per node role settings. If no per node settings are available, it will return the content type settings.

File

./content_access.module, line 437
Content access module file.

Code

function content_access_get_per_node_settings($node) {
  $settings = db_result(db_query("SELECT settings FROM {content_access} WHERE nid = %d", $node->nid));
  if (!$settings) {
    return array();
  }
  return unserialize($settings);
}