Plugin Hooks » MenuPageOptions

Hook Details
Typeaction
Available Since2.4
Latest Version Used4.4

Add-ons Using "MenuPageOptions"

Below is a list of all add-ons that have implemented the "MenuPageOptions" hook by defining it in their addon.ini file.

AddonHook Argument
Page Protect

Where "MenuPageOptions" is Called

Below is quick look at where "MenuPageOptions" is implemented within the gpEasy code.

Package:   gpEasy Core File:   gpEasy/include/admin/admin_menu_new.php Line: 807

Lines 797 through 815

    $stats = @stat($file);
    if( 
$stats ){
        
$data += array(
                
'size'        =>    admin_tools::FormatBytes($stats['size'])
                ,
'mtime'    =>    common::date($langmessage['strftime_datetime'],$stats['mtime'])
                );
    }
}

ob_start();
gpPlugin::Action('MenuPageOptions',array($title,$menu_key,$menu_value,$layout_info));
$menu_options ob_get_clean();
if( 
$menu_options ){
    
$data['opts'] = $menu_options;
}

View the complete file ( GitHub.com )

Package:   gpEasy Core File:   gpEasy/include/admin/admin_menu_new.php Line: 1092

Lines 1082 through 1100


$img 
'<span style="background-color:'.$layout_info['color'].';" class="layout_icon"></span>';
echo 
$this->Link('Admin_Menu',$img.$layout_info['label'],'cmd=layout&index='.urlencode($title_index),array('title'=>$langmessage['layout'],'data-cmd'=>'gpabox'));

$is_special common::SpecialOrAdmin($title);
if( !
$is_special ){
    
$img '<span class="menu_icon bin_icon"></span>';
    echo 
$this->Link('Admin_Menu',$img.$langmessage['delete'],'cmd=trash&index='.urlencode($title_index),array('title'=>$langmessage['delete_page'],'data-cmd'=>'menupost','class'=>'gpconfirm'));
}

gpPlugin::Action('MenuPageOptions',array($title,$title_index,false,$layout_info));

//stats
echo '<br/>';
echo 
'<b>'.$langmessage['Page Info'].':</b>';
$this->FileStats($title_index,$title,$is_special);

View the complete file ( GitHub.com )


Need a new hook for your addon?
Let us know, we're more than happy to accommodate!

 

gpEasy News

4.5 Beta
5/13/2015

The first beta of version 4.5 is now available to download. It's only been a week ... Read More

4.4
5/4/2015

gpEasy 4.4 is now available for download. The newest release is chock full of bug fixes, ... Read More

More News

VBOX Web Hosting

Our company provides professional web hosting which doesn't use any third party hosting software.

Find out more about gpEasy's Provider Spotlight

Log In

  Register