Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $items['user/%/content'] = array(
- 'title' => 'Content',
- 'page callback' => 'content_list',
- 'access callback' => 'user_access',
- 'access arguments' => array('create content', 1),
- 'type' => MENU_LOCAL_TASK,
- );
- foreach ($types as $node_type) {
- $items['user/%/content/' . $node_type->type] = array(
- 'title' => $node_type->name,
- 'access callback' => 'user_access',
- 'access arguments' => array('create content', 1),
- 'page callback' => 'get_content_list',
- 'page arguments' => array(1, $node_type->type),
- 'type' => MENU_LOCAL_TASK,
- );
Add Comment
Please, Sign In to add comment