Ignore:
Timestamp:
Jun 3, 2011, 1:57:17 PM (13 years ago)
Author:
mistic100
Message:

clean code, add some options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Front2Back/main.inc.php

    r10985 r11217  
    1515include_once(F2B_PATH . 'Front2Back.php');
    1616add_event_handler('render_element_content', 'Front2Back_content', 99, 2);
    17        
     17 
    1818if (script_basename() == 'admin')
    1919{
    20         add_event_handler('get_admin_plugin_menu_links', 'Front2Back_admin_menu');
    21         function Front2Back_admin_menu($menu)
    22         {
    23                 array_push($menu, array(
    24                         'NAME' => 'Front2Back',
    25                         'URL' => get_root_url().'admin.php?page=plugin-' . F2B_DIR));
    26                 return $menu;
    27         }
     20  add_event_handler('get_admin_plugin_menu_links', 'Front2Back_admin_menu');
     21  function Front2Back_admin_menu($menu)
     22  {
     23    array_push($menu, array(
     24      'NAME' => 'Front2Back',
     25      'URL' => get_root_url().'admin.php?page=plugin-' . F2B_DIR));
     26    return $menu;
     27  }
    2828}
    2929
Note: See TracChangeset for help on using the changeset viewer.