approved===true) { $html = " ".make_form(make_link('disapprove_image/'.$image->id), 'POST')." "; } else { $html = " ".make_form(make_link('approve_image/'.$image->id), 'POST')." "; } return $html; } public function get_help_html() { return '

Search for images that are approved/not approved.

approved:yes

Returns images that have been approved.

approved:no

Returns images that have not been approved.

'; } public function display_admin_block(SetupBuildingEvent $event) { $sb = new SetupBlock("Approval"); $sb->add_bool_option(ApprovalConfig::IMAGES, "Images: "); $event->panel->add_block($sb); } public function display_admin_form() { global $page; $html = make_form(make_link("admin/approval"), "POST"); $html .= "
"; $html .= ""; $html .= "\n"; $page->add_block(new Block("Approval", $html)); } }