public function validateFileCollectionItem($file_id)
    {
        $file = $this->file->get($file_id);

        if (empty($file)) {
            return $this->translation->text('@name is unavailable', array(
                '@name' => $this->translation->text('File')));
        }

        return true;
    }
public function validateFileCollectionItem($file_id)
    {
        $file = $this->file->get($file_id);

        if (empty($file)) {
            return $this->translation->text('@name is unavailable', array(
                '@name' => $this->translation->text('File')));
        }

        return true;
    }
public function validateFileCollectionItem ( $ file_id ) { $ file = $ this -> file -> get ( $ file_id ) ; if ( empty ( $ file ) ) { return $ this -> translation -> text ( '@name is unavailable' , array ( '@name' => $ this -> translation -> text ( 'File' ) ) ) ; } return true ; }
Validates file collection item. Hook callback
@param integer $file_id
@return boolean|string
Validates file collection item . Hook callback