You are here

function nodeorder_order_access in Node Order 7

Same name and namespace in other branches
  1. 6 nodeorder.module \nodeorder_order_access()

Custom access function which determines whether or not the user is allowed to reorder nodes and if the link should be shown at all.

1 call to nodeorder_order_access()
nodeorder_handler_order_link::render in includes/views/handlers/nodeorder_handler_order_link.inc
Render the field.
1 string reference to 'nodeorder_order_access'
nodeorder_menu in ./nodeorder.module
Implements hook_menu().

File

./nodeorder.module, line 382
Nodeorder module.

Code

function nodeorder_order_access($tid) {
  return user_access('order nodes within categories') && variable_get('nodeorder_link_to_ordering_page', 1) && nodeorder_term_can_be_ordered($tid);
}