Yohns Designs

Top Tags

No Tags Found
No Tags Found
No Tags Found
No Tags Found
[h3]Routes[/h3] routes are for manipulating the url. If we want to add a new route, for say a store, and we want the url to be like.. site.com/store, we would add that below. The Route_ tells us to look within the route / url for whatever follows. in this case "store". and then the store_display is the function that gets called when that is the first section in the url. [code]$Sets['core']['Plugable']->addHook('Route_store', 'store_display');[/code] $Sets['core']['Plugable']->addHook('Ajax.trigger_NewsPost', 'news_triggerNewsPost'); $Sets['core']['Plugable']->addHook('Ajax.trigger_importNews', 'news_trigger_importNews'); $Sets['core']['Plugable']->addHook('Ajax.sub_newsPost', 'news_NewsSub'); $Sets['core']['Plugable']->addHook('Ajax.sub_importNews', 'news_SubImport'); $Sets['core']['Plugable']->addHook('Ajax.sub_removePost', 'news_removePost'); $Sets['core']['Plugable']->addHook('Ajax.do_Import', 'news_Imort'); $Sets['core']['Plugable']->addHook('Ajax.fromTabs', 'news_FromTabs'); $Sets['core']['Plugable']->addFilter('Ajax.TabLinks', array( 'url' => '#news', 'icon' => 'edit', 'txt' => l('News'), 'callback' => 'news_FromTabs' ) ); $Sets['core']['Plugable']->addFilter('NavbarLinks', array( 'url' => '/news/', 'name' => l('News') ) );