OnLoadBookmarks

Description

Before the list of bookmarks are returned. Plugin may manipulate the bookmarks for specific purposes.

@since 1.5

Params

  • array of bookmark objects ( with name, className and link properties)

Example

function onLoadBookmarks( &$arrBookmarkObj ) 
{
   /*
    *  In this example, we add all the bookmarks name with a prefix.
    *  E.g.: "Delicious" will become "MyWeb Delicious"
    */
    $strPrefix = 'MyWeb ';
    $intArraySize = count($arrBookmarkObj);
 
    for ($i = 0; $i < $intArraySize; $i++)
    {
          $arrBookmarkObj[$i]->name = $strPrefix.$arrBookmarkObj[$i]->name;
    }
 
    return true;
}