We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Which hook to use to filter results in the Edit Weblog Entries

Development and Programming

Brian Litzinger's avatar
Brian Litzinger
693 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

I’m trying to filter/hide certain rows of weblog entries in the Edit Weblog Entries page. I’d like to hide them based on member group. Is there a hook to modify the query used to generate the listing of this page?

       
Brian Litzinger's avatar
Brian Litzinger
693 posts
16 years ago
Brian Litzinger's avatar Brian Litzinger

I think I got what I need with the hook edit_entries_modify_tablerow

preg_match("/delete_box_(\d+)/", $tr, $matches);
        $entry_id = $matches[1];
        
        $tr = preg_replace("/tr>/", "tr style=\"display: none\">\r", $tr);
        
        $html = $tr;
        return $html;
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.