Plugin Hooks » MenuPageOptions

Hook Details
Typeaction
Available Since2.4
Latest Version Used4.3.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: 790

Lines 780 through 798

    $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: 1052

Lines 1042 through 1060


$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.3.2
2/18/2014

The final release of gpEasy 4.3.2 is now available. This is primarily a third-party package ... Read More

4.3 Final
11/4/2013

The wait is over. The final release of gpEasy 4.3 brings some exciting new features ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): Konzeption, Planung und Kreation Ihres Internet-Auftritts, Betreuung und Aktualisierung Ihrer Website, Optimierung und ...

Find out more about gpEasy's Provider Spotlight

Log In

  Register