Guest User

Untitled

a guest
May 23rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. $items['user/%/content'] = array(
  2. 'title' => 'Content',
  3. 'page callback' => 'content_list',
  4. 'access callback' => 'user_access',
  5. 'access arguments' => array('create content', 1),
  6. 'type' => MENU_LOCAL_TASK,
  7. );
  8. foreach ($types as $node_type) {
  9. $items['user/%/content/' . $node_type->type] = array(
  10. 'title' => $node_type->name,
  11. 'access callback' => 'user_access',
  12. 'access arguments' => array('create content', 1),
  13. 'page callback' => 'get_content_list',
  14. 'page arguments' => array(1, $node_type->type),
  15. 'type' => MENU_LOCAL_TASK,
  16. );
Add Comment
Please, Sign In to add comment