You are here

function _quotes_myquotes_access in Quotes 7

Same name and namespace in other branches
  1. 6 quotes.module \_quotes_myquotes_access()

Menu access callback.

1 string reference to '_quotes_myquotes_access'
quotes_menu in ./quotes.module
Implements hook_menu().

File

./quotes.module, line 100
The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.

Code

function _quotes_myquotes_access() {
  global $user;

  // This path is only allowed for authenticated users looking at their quotes
  // on thier account page.
  return $user->uid && variable_get('quotes_show_myquotes', TRUE);
}