Plugin Hooks » MenuPageOptions


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

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 Typesetter code.

Package:   Typesetter Core File:   Typesetter/include/admin/admin_menu_new.php Line: 804

Lines 794 through 812

    $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:   Typesetter Core File:   Typesetter/include/admin/admin_menu_new.php Line: 1145

Lines 1135 through 1153


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

if( 
$is_special === false ){
    echo 
$this->Link('Admin_Menu',$langmessage['delete'],'cmd=trash&index='.urlencode($title_index),array('title'=>$langmessage['delete_page'],'data-cmd'=>'postlink','class'=>'gpconfirm'));
}

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

//stats
if( gpdebug ){
    echo 
'<span>Data Index: '.$title_index.'</span>';
}

View the complete file ( GitHub.com )


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

 

News

5.0 Beta 2
2/2/2016

The second beta release of Typesetter 5.0 is now available for download from github. This ... Read More

5.0b1
1/21/2016

The first beta release of Typesetter 5.0 is now available for download from github. This ... 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 our Provider Spotlight

Log In

  Register