You are here

function nodeorder_taxonomy_order_access in Node Order 6

Same name and namespace in other branches
  1. 7 nodeorder.module \nodeorder_taxonomy_order_access()

Custom access function which determines whether or not the user is allowed to reorder nodes and if the vocabulary is orderable

1 string reference to 'nodeorder_taxonomy_order_access'
nodeorder_menu in ./nodeorder.module
Implementation of hook_menu().

File

./nodeorder.module, line 318
Nodeorder module.

Code

function nodeorder_taxonomy_order_access($vid) {
  return user_access('order nodes within categories') && variable_get('nodeorder_link_to_ordering_page_taxonomy_admin', 1) && nodeorder_vocabulary_can_be_ordered($vid);
}