approved===true) { $html = SHM_SIMPLE_FORM( 'disapprove_image/'.$image->id, INPUT(["type"=>'hidden', "name"=>'image_id', "value"=>$image->id]), SHM_SUBMIT("Disapprove") ); } else { $html = SHM_SIMPLE_FORM( 'approve_image/'.$image->id, INPUT(["type"=>'hidden', "name"=>'image_id', "value"=>$image->id]), SHM_SUBMIT("Approve") ); } return (string)$html; } public function get_help_html() { return '
Search for posts that are approved/not approved.
approved:yes
Returns posts that have been approved.
approved:no
Returns posts that have not been approved.