Error message

User warning: The following theme is missing from the file system: responsive_green. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1143 of /var/www/moscovie.com/includes/bootstrap.inc).

Доступ к нодам Drupal6

/**
* Implement hook_node_access_records().
*/
function custom_node_access_records($node) {
if ($node->type == 'profile') {
// Authors need access to their own private profile
$grants[] = array(
'realm' => 'custom_profile',
'gid' => $node->uid,
'grant_view' => TRUE,
'grant_update' => TRUE,
'grant_delete' => FALSE,
);
return $grants;
}
}

/**
* Implement hook_node_grants().
*/
function custom_node_grants($account, $op) {
$grants['custom_profile'] = array($account->uid);
return $grants;
}

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.