guid; $title = $vars['entity']->title; $address = $vars['entity']->address; $access_id = $vars['entity']->access_id; $tags = $vars['entity']->tags; $notes = $vars['entity']->description; $owner = get_entity($vars['entity']->container_guid); $url = "action/bookmarks/edit"; }else{ //set some variables $guid = ''; $title = get_input('title',""); $title = stripslashes($title); // strip slashes from URL encoded apostrophes $address = get_input('address',""); $notes = ''; if ($address == "previous") $address = $_SERVER['HTTP_REFERER']; $tags = array(); if(elgg_get_page_owner() instanceof ElggGroup){ //if in a group, set the access level to default to the group $access_id = elgg_get_page_owner()->group_acl; }else{ $access_id = get_default_access(get_loggedin_user()); } $owner = get_loggedin_user(); $url = "action/bookmarks/add"; } ?>

'container_guid', 'value' => $vars['container_guid'])) : ""; ?>